[xsl] Preceding comment() match

Subject: [xsl] Preceding comment() match
From: "Karl Stubsjoen" <kstubs@xxxxxxxxx>
Date: Thu, 21 Dec 2006 14:53:45 -0700
I need to match the first comment() preceding the current context.

So from:

this is the comments, first preceding
<xsl:template name="example">


Assuming that this xpath should work: <xsl:value-of select="preceding-sibling::comment()[1]"/>

But instead, I am matching on every preceding elements first comment
tag.  I just need "your" comment tag, and if you don't have one, then

Please help.


Current Thread