XSLT TutorialLesson 62Free preview
XSLT on the Client
This lesson is part of XML · All levels
Summary
XSLT can be run directly in the browser (client-side) by inserting the xml-stylesheet processing instruction into the XML file. The browser reads the XSL file, then renders the transformation results without having to call the server. Only XSLT 1.0 is consistently supported by modern browsers.
Key points
- Declaration: What is the name of the document?
- The browser is transforming on the client side, without any additional requests to the server.
- Support for modern browsers only XSLT 1.0
- When XML and XSL are different domains, CORS policies can block transformation.
- The end result is purely client-determined, so it's less suitable for SEO.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.