xsl-list
[Top] [All Lists]

Re: [xsl] how to test previous node name

2007-02-11 19:42:02
xslt.new wrote:
Hi Andrew:

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>
test1 is not the preceding node. It is the parent node.


--
Kamal Bhatt


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--