Subject: Re: [xsl] get immediat preceeding node, if it is a comment From: Joerg Heinicke <joerg.heinicke@xxxxxx> Date: Fri, 04 Oct 2002 13:57:05 +0200 |
preceding-sibling::node()[normalize-space()][1][self::comment()]
This will select the first in a list of nodes that return true for normalize-space() and self::comment().
No, that would be
preceding-sibling::node()[normalize-space()][self::comment()][1]
What you have, preceding-sibling::node()[normalize-space()][1][self::comment()]
selects the first non-whitespace-text node if it is a comment.
Sure. But aren't they both the same (they select the same node)? The only difference would be the size of the lists the predicates create? (feel free to point out the correct terminology here)
<root> <!-- test --> <test1>test</test1> <test2>test</test2> <!-- test --> <test3>test</test3> <test4>test</test4> </root>
System Development VIRBUS AG Fon +49(0)341-979-7419 Fax +49(0)341-979-7409 joerg.heinicke@xxxxxxxxx www.virbus.de
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] get immediat preceeding n, Andrew Welch | Thread | Re: [xsl] get immediat preceeding n, David Carlisle |
Re: [xsl] xalan encoding issues?, Jarkko . Moilanen | Date | RE: [xsl] xalan encoding issues?, Yates, Danny (ANTS) |
Month |