The W3C XSL Working Group has published the last call working draft of XSL Transformations (XSLT) Version 2.0. According to the draft, more significant changes since the previous XSLT 2 draft include:
A new attribute, use-when
, allows compile-time
conditional inclusion of sections of the stylesheet depending on the
processing environment (for example, for schema-aware or
non-schema-aware processing)
A switch, input-type-annotations
, defines whether the stylesheet expects source data to have been validated and annotated by a schema processor.
A new instruction xsl:document
is provided, to construct a document node.
Serialization attributes can now be specified (dynamically) on the xsl:result-document
instruction.
A schema can now be included inline within the xsl:import-schema
declaration.