Subject: Re: [xsl] XPath - excluding specified childNodes from result nodeList From: Sascha Mantscheff <922492@xxxxxx> Date: Sat, 15 Dec 2007 09:34:28 +0100 |
Maybe you want: //*[name()='a' or ancestor::a][not(name()='c')]
Hi there,
Hope this isn't an inappropriate post - I'm new to XSL and XPath, and am currently using the PHP implementation of XPath 1.0. I've searched around the net but can't seem to find an appropriate way to solve the following XPath problem.
I'm simply trying to exclude a specified child node from being within the nodeList created by my expression e.g.
<document> <a> <b> </b> <c> </c> </a> </document>
Select node 'a' but remove child 'c' from the result set.
Any tips appreciated.
Cheers,
Steve
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] XPath - excluding specified c, Steven | Thread | Re: [xsl] XPath - excluding specifi, Mukul Gandhi |
[xsl] XPath - excluding specified c, Steven | Date | Re: [xsl] XPath - excluding specifi, Mukul Gandhi |
Month |