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
format
Refers 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 thename
attribute of the appropriate<xsl:output>
element.href
Defines 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
type
andvalidation
attributes are mutually exclusive.- [2.0 – Schema]
validation
Defines how the new document element will be validated. The
validation
attribute 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 ...
Get XSLT, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.