[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: [XSLT] Asking or Update variable
> <xsl:template match="rdf:RDF"> > > <xsl:for-each select="child::node()[@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(*[@rdf:ID=$class]/*[name()=$subclass])"/> Michael Kay http://www.saxonica.com/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|