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

Re: Following-sibling axis - original tree or current result

Subject: Re: Following-sibling axis - original tree or current result-set?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 6 Nov 2000 17:02:23 GMT
xslt sibling axis
> Thanks!  That works but I hate the idea of having the criteria for selecting
> "small" ( contains(@name, 'small') ) in multiple places - since if I decided
> to now get "big" instead of small, I have to change every occurence.
> Instead I'd rather get the proper set and then work within that without
> duplicating the set requirements...  

Well you could use a parameter
<xsl:param name="x" select="'small'"/>
and use $x instead of 'small' everywhere.

But to do what you ask, collect up the required nodes and then apply
templates to those, you can't do that in one pass in XSLT 1.0.

Most XSLT engines will give you a node-set extension that allows it
or XSLT 1.1 (when it comes) will allow it (according to the XSLT 1.1
requirements document)

> -----Original Message-----

The guidelines for this list do warn against quoting entire messages.

David


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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-2013 All Rights Reserved.