|
[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
> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








