<xsl:template match="rdf:RDF">
<xsl:for-each select="child::node()[(_at_)rdf:ID=$class]">
<xsl:for-each select=" child::node()">
<xsl:if test="name()=$subclass">
<xsl:value-of select="@rdf:resource"/>
<xsl:variable
name="IsSubclass">True</xsl:variable>
</xsl:if>
</xsl:for-each>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
I need know value of variable IsSubclass before the tag
</xsl:template>
Bind the variable outside the loop:
<xsl:variable name="IsSubClass"
select="boolean(*[(_at_)rdf:ID=$class]/*[name()=$subclass])"/>
Michael Kay
http://www.saxonica.com/
--~------------------------------------------------------------------
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>
--~--