Subject: Re: [xsl] how to test previous node name From: Kamal Bhatt <kbhatt@xxxxxxxxx> Date: Mon, 12 Feb 2007 13:46:26 +1100 |
Hi Andrew:test1 is not the preceding node. It is the parent node.
Thank you for your response. I did try this inside template <item> but it fails to get me the right result.
This is what I tried:
<xsl:template match="item"> <xsl:if test="preceding::*[1][self::test1]">
<xsl:text>Found test1</xsl:text> </xsl:if>
</xsl:template>
-- Kamal Bhatt
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] how to test previous node, xslt . new | Thread | Re: [xsl] how to test previous node, Andrew Welch |
Re: [xsl] how to test previous node, xslt . new | Date | [xsl] for-each-group, group-startin, Matt Poff |
Month |