Subject: [xsl] xpath problem From: Graham Seaman <graham@xxxxxxxxx> Date: Mon, 24 Sep 2001 19:54:45 +0100 (BST) |
Hi, I've got stuck on something I thought should be quite simple: I need to select all elements of type foo which do not have an ancestor with attribute bar. I've been trying endless permutations, along the lines of: <xsl:for-each select="///foo[not(ancestor::*[@bar])]"> and none of which work... I imagine the problem is with trying to use the ancestor axis in this expression (although the above parses ok), but I can't see a one-line way to do it otherwise. Any suggestions? Thanks Graham XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Sablotron 0.7 /PHP 4.0.6 prob, Carsten Heinrigs | Thread | [xsl] Re: RE: Namespace incompatibi, Dimitre Novatchev |
Re: [xsl] accessing previous and ne, Guillaume Rousse | Date | [xsl] Re: RE: Namespace incompatibi, Dimitre Novatchev |
Month |