|
Subject: RE: [xsl] XPath problem: Checking if imidiately preceding sibling is of a certain kind From: "Ragulf Pickaxe" <jawxml@xxxxxxxxxxx> Date: Fri, 27 Feb 2004 10:09:22 +0000 |
<xsl:when test="not(preceding-sibling::*[1]=preceding-sibling::A[1])"> Last sibling was not an A element - </xsl:when> <xsl:otherwise> Last sibling was an A element - </xsl:otherwise>
<root>
<X><A a="1"/><A a="1"/><A a="2"/>Some text</X>
<X><A a="4"/>Some text<br/>
<A a="5"/>More text<br/>
<A a="7"/>Even more text</X>
</root>
Thanks, Ragulf Pickaxe :-|
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] XPath problem: Checking i, Kevin Jones | Thread | Re: [xsl] XPath problem: Checking i, David Carlisle |
| RE: RE: [xsl] Re: Network diagram -, David . Pawson | Date | Re: [xsl] XPath problem: Checking i, David Carlisle |
| Month |