Subject: [xsl] document() to get root node of xml file??? From: hnorris <hnorrisalt@xxxxxxxxx> Date: Wed, 13 Feb 2002 01:53:35 -0500 |
Any light you can shed on this obscure topic of how to the get your root node (for your xml data file), regardless of the current node context, would be greatly appreciated!
Is it possible to use the xslt document() function to get the root node of a non-file - in this case a tree passed in a as param?
select="document($paramDocumentName)/Properties/Value"
if you have a single command to the document function it's a uri, so no it's not possible, what you should do is use a nodeset function, if your processor has an extension for that, for example saxon has saxon:nodeset($paramDocumentName)/Properties/Value, if you're using a processor that supports xslt 1.1 you don't have to use an extension to get nodeset.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] document() on a node-set , Bryan Rasmussen | Thread | Re: [xsl] document() to get root no, Joerg Heinicke |
Re: [xsl] How to assign a value and, Bertrand Delacretaz | Date | Re: [xsl] white space to + in query, Christopher R. Maden |
Month |