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

RE: XPath expr on generated nodeset

Subject: RE: XPath expr on generated nodeset
From: "Passin, Tom" <tpassin@xxxxxxxxxxxx>
Date: Fri, 25 Oct 2002 10:54:37 -0400
xpath expr
[Al Byers]
> I generated a nodeset by assigning elements to a variable and 
> then converting the fragment to a nodeset, but normal XPath 
> expressions do not seem to work. I would appreciate any help 
> on figuring out what I am doing wrong. I am using Xalan 2.4.0. TIA Al

If all you are doing is building a fixed set of nodes, there is no need
to convert RTFs to nodesets.  You can create a nodeset by putting them
in a named template and access them using document("").  This
illustrates how to construct your example -

<xsl:variable name='aNd' 


<xsl:template name='fragment'>

This way works fine and does not depend on extension functions, so it is
fully portable.  Of course, it cannot be dynamically constructed, but it
works well for lookup tables and such.


Tom P

 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.