[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: How to create a node set that excludes some desce
More info (sorry I didn't put it in the first post)
Rush Manbert wrote: I want to create a global variable that contains the result tree fragment contained within element <c>, with the following restrictions:Some things I have tried: <xsl:variable name="set" select="/a/b/c/*[((name() != 'y') and (name() != 'z'))] | /a/b/c//y[1]" /> <xsl:variable name="set" select="/a/b/c/descendant::*[((name() != 'y') and (name() != 'z'))] | /a/b/c//y[1]" /> Then I tried to just exclude <z> at any level: <xsl:variable name="set" select="/a/b/c/descendant::*[not(self::z)]" /> but that only excludes <z> elements that are children of <c>. I'm using xsltproc, built with libxml 2.6.19 and libxslt 1.1.14 - Rush
|
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
|