Class DocumentBuilder
Class DomDestination
Class DynamicContext
Class DynamicError
Class EmptyEnumerator
Class ExtensionFunctionCall
Class InvalidityHandlerWrapper
Class NamespaceConstant
Class NullDestination
Class Processor
Class QName
Class SchemaManager
Class SchemaValidator
Class Serializer
Class StandardLogger
Class StaticContext
Class StaticError
Class TextWriterDestination
Class WhitespacePolicy
Class XPathCompiler
Class XPathExecutable
Class XPathSelector
Class XQueryCompiler
Class XQueryEvaluator
Class XQueryExecutable
Class XdmAnyFunctionType
Class XdmAnyItemType
Class XdmAnyNodeType
Class XdmArray
Class XdmAtomicType
Class XdmAtomicValue
Class XdmDestination
- Class TreeProtector
Class XdmEmptySequence
Class XdmExternalObjectValue
Class XdmFunctionItem
Class XdmItem
Class XdmItemType
Class XdmMap
Class XdmNode
Class XdmNodeKind
Class XdmSequenceType
Class XdmValue
Class XmlDestination
Class Xslt30Transformer
Class XsltCompiler
Class XsltExecutable
- Class ParameterDetails
Class XsltPackage
Class XsltTransformer
Enum RecoveryPolicy
Enum SchemaValidationMode
Enum TreeModel
Enum XdmAxis
Interface IInvalidityHandler
Interface IMessageListener
Interface IQueryResolver
Interface IResultDocumentHandler
Interface IXdmEnumerator
Interface IXmlLocation
Interface SchemaResolver
public interface IResultDocumentHandler
An IResultDocumentHandler
can be nominated to handle output
produced by the xsl:result-document
instruction in an XSLT stylesheet.
This interface affects any xsl:result-document
instruction
executed by the stylesheet, provided that it has an href
attribute.
If no IResultDocumentHandler
is nominated (in the
IResultDocumentHandler
property of the XsltTransformer
), the output
of xsl:result-document
is serialized, and is written to the file
or other resource identified by the URI in the href
attribute, resolved
(if it is relative) against the URI supplied in the BaseOutputUri
property
of the XsltTransformer
.
If an IResultDocumentHandler
is nominated, however, its
HandleResultDocument
method will be called whenever an xsl:result-document
instruction with an href
attribute is evaluated, and the generated result tree
will be passed to the XmlDestination
returned by that method.
Method Summary | |
---|---|
XmlDestination |
HandleResultDocument(string href, System.Uri baseUri) Handle output produced by the |
Method Detail |
---|
Handle output produced by the
xsl:result-document
instruction in an XSLT stylesheet. This method is called by the XSLT processor when anxsl:result-document
with anhref
attribute is evaluated.The XSLT processor will ensure that the stylesheet cannot create two distinct result documents which are sent to the same URI. It is the responsibility of the
IResultDocumentHandler
to ensure that two distinct result documents are not sent to the sameXmlDestination
. Failure to observe this rule can result in output streams being incorrectly closed.Note that more than one result document can be open at the same time, and that the order of opening, writing, and closing result documents chosen by the processor does not necessarily bear any direct resemblance to the way that the XSLT source code is written.
Parameters:href
-href
attribute of thexsl:result-document
in the stylesheet.baseUri
-href
if it is relative. This will always be the value of theBaseOutputUri
property of theXsltTransformer
.XmlDestination
to handle the result tree produced by thexsl:result-document
instruction. TheClose
method of the returnedXmlDestination
will be called when the output is complete.