The Output URI Resolver |
This interface is used to resolve the destination URI specified by the href attribute of xsl:result-document. It is not used to resolve the principal output destination, as that is under the direct control of the user of the XSLT library, not the stylesheet author.
This map is also used to ensure that no attempt is made to write two different result trees to the same destination URI.
If resolution is successful, last_result must be set to the created XM_XSLT_TRANSFORMATION_RESULT, which must also stored in output_destinations. If resolution is not successful, then error_message must be set to an explanatory message.
An XM_XSLT_OUTPUT_PROPERTIES object is passed to the routine so that MIME information is available for URI schemes that need it.
This is the only concrete output resolver provided by the library. If it is not suitable for your needs, then you must write your own, and supply it as the third argument to XM_XSLT_CONFIGURATION's creation procedure, make.
This output resolver handles resolve requests by passing them to an instance of XM_XSLT_OUTPUT_URI_SCHEME_RESOLVER, according to the scheme of the URI concerned.
The resolver comes pre-configured with handlers for the file, stdout, and string protocols. The latter two are Gobo-specific protocols, for writing to the standard output stream and a STRING, repectively.
Support for additional schemes may be added by calling register_scheme.
Copyright © 2004-2016, Colin Adams and others mailto:colin@colina.demon.co.uk http://www.gobosoft.com Last Updated: 27 December 2016 |