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

Re: How do I build a nodeset "programmatically" for p

Subject: Re: How do I build a nodeset "programmatically" for passing to another template?
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Thu, 17 Aug 2006 12:04:41 -0400
Re:  How do I build a nodeset "programmatically" for  p
At 11:59 AM 8/17/2006, David wrote:
in xsl 1.1 draft (and xsl2 draft which is implemented in saxon 8) then
you can do just as you suggest

<xsl:variable name="something">
 ... xsl code ..
</xsl:variable>

then
select="$something/*"

(note that $something is always a root node / soto select the top level
element (or elements) that you create in the variable you need to
use a path such as $something/*

It's a good point: this will probably be a gotcha, especially since sometimes (for example, when applying templates in a mode) select="$something" will work just fine, and other times (for example when applying templates not in a mode) it will fail inexplicably and spectacularly.


Cheers,
Wendell

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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-2007 All Rights Reserved.