[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: XT and document() and xt:document

Subject: RE: XT and document() and xt:document
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Tue, 18 Jan 2000 10:18:44 -0000
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')"/>

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

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.