[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: SELECT ALL CHILD NODES AND EXCEPT ONE
XPath 2.0 makes this easy, with an "except" operator: A except B selects nodes in node-set A that are not in node-set B. Some XSLT 1.0 processors offer the EXSLT set:difference() extension function which does the same thing. In standard XPath 1.0 you can write "A except B" as A[count(.|B) != count(B)] but it is likely to be quite inefficient. Michael Kay > -----Original Message----- > From: Arul Kumar [mailto:arulxml@xxxxxxxxxxxx] > Sent: 23 May 2004 11:58 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: SELECT ALL CHILD NODES AND EXCEPT ONE > > Hello all, > > I have an XML, with the root element <chapter> under this > there are many > child nodes. My question is, how to select the all the child nodes of > <chapter> and except the node '//ce:section/ce:section-title'. > > Please advice me the XPath expression, so that I can use it > in my XSL. > Many thanks. > > Best regards > Arul
|
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
|