[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: selection of all children except one
Or in 2.0 select="* except bad" Michael Kay http://www.saxonica.com/ > -----Original Message----- > From: david_n_bertoni@xxxxxxxxxx [mailto:david_n_bertoni@xxxxxxxxxx] > Sent: 03 October 2004 19:41 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: Re: selection of all children except one > > > I tried: > > <xsl:for-each select="child::*[not(bad)]"> > > But the bad child is included in the result. > > Does anybody know, how can I exclude this child? > > I don't want to use the function position(), > > because the elements can have got a random order. > > Provided the current node is "myelements", this will work: > > select="*[not(self::bad)]" > > Dave
|
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
|