|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: XT and document() and xt:document
> how can I pass the result of a document() call to other templates?
Same way as any other value:
<xsl:call-template name="f">
<xsl:with-param name="x" select="document('abc.xml')"/>
</xsl:call-template>
Or you can apply templates to the result of the document() call, though it
is usually better to pass the document element rather than the root node
(because it's easier to match that in a pattern):
<xsl:apply-templates select="document('abc.xml')/*"/>
> I need is to append the node-set created from the
> document() call to the current one. Any idea how this can be done?
Using the union operator:
<xsl:variable name="$a" select="$b | document('abc.xml')"/>
Of course you cannot "append" in the sense of updating a variable in situ.
(unless you feel like using <saxon:assign>, which this community regards as
a crime almost as bad as using IE5)
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








