Oxygen XML Editor
 
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[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">

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


Current Thread
 
© 2002-2008 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy
This website was created & generated with <oXygen/> XML Editor
Keywords