xsl-list
[Top] [All Lists]

[xsl] Preceding comment() match

2006-12-21 14:54:06
I need to match the first comment() preceding the current context.

So from:

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

</xs:template>


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
nevermind.

Please help.

Karl..

--~------------------------------------------------------------------
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>
--~--

<Prev in Thread] Current Thread [Next in Thread>