background preloader

XSLT

XSLT
XSLT (Extensible Stylesheet Language Transformations) is a language for transforming XML documents into other XML documents,[1] or other objects such as HTML for web pages, plain text or into XSL Formatting Objects which can then be converted to PDF, PostScript and PNG.[2] The original document is not changed; rather, a new document is created based on the content of an existing one.[3] Typically, input documents are XML files, but anything from which the processor can build an XQuery and XPath Data Model can be used, for example relational database tables, or geographical information systems.[1] XSLT is a Turing-complete language, meaning it can specify any computation that can be performed by a computer.[4][5] History[edit] Design and processing model[edit] Diagram of the basic elements and process flow of Extensible Stylesheet Language Transformations. Processor implementations[edit] Performance[edit] Most early XSLT processors were interpreters. XSLT and XPath[edit] XSLT media types[edit] <?

XSL Transformations (XSLT) Version 2.0 This section provides a checklist of progress against the published XSLT 2.0 Requirements document (see [XSLT 2.0 Requirements]). Requirement 1 must Maintain Backwards Compatibility with XSLT 1.1 [Read this as "with XSLT 1.0"] Any stylesheet whose behavior is fully defined in XSLT 1.0 and which generates no errors will produce the same result tree under XSLT 2.0 Response See J.1 Incompatible Changes Requirement 2 must Match Elements with Null Values A stylesheet should be able to match elements and attributes whose value is explicitly null. This has been handled as an XPath 2.0 requirement. Requirement 3 should Allow Included Documents to "Encapsulate" Local Stylesheets XSLT 2.0 should define a mechanism to allow the templates in a stylesheet associated with a secondary source document, to be imported and used to format the included fragment, taking precedence over any applicable templates in the current stylesheet. Requirement 4 Could Support Accessing Infoset Items for XML Declaration

XSL Tutorial

Related: