Name
[2.0]
<xsl:result-document>
Creates a final result tree. Typically a result tree is
written to a file, although an XSLT 2.0 processor is not required to
be able to do so. The <xsl:result-document> instruction is
useful for generating multiple files from a single stylesheet. It also
makes it possible to generate the name of the output file at
runtime.
Category
Instruction.
Required Attributes
None.
Optional Attributes
formatRefers to an output specification defined on a named
<xsl:output>element. You can define properties such as an output method or a character encoding, then reuse those output specifications by referencing thenameattribute of the appropriate<xsl:output>element.hrefDefines the URI of this result document. Typically this is used to define a filename for the result document, although an XSLT processor is free to use this URI any way it chooses.
- [2.0 – Schema]
type Defines the datatype of the document element. The datatype can be any of the built-in datatypes, or it can be a datatype defined in a schema if you have a schema-aware XSLT 2.0 processor.
The
typeandvalidationattributes are mutually exclusive.- [2.0 – Schema]
validation Defines how the new document element will be validated. The
validationattribute has four values:strict,lax,preserve, orstrip.validation="strict"means that the XSLT processor looks in all the declared schemas for an element declaration (<xs:element>) with the same name as the document element. It is a fatal error if the processor can’t ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access