[xsl] [XSLT] Asking or Update variable

Subject: [xsl] [XSLT] Asking or Update variable
From: <igutierrez027@xxxxxxxxxxxxx>
Date: Wed, 12 Mar 2008 12:07:40 +0100 (CET)
Hello everybody!

I think that is not possible change the value of the variables and is
not possible ask for one variable. I need do some things which depends
on the value of the one variable. How I can do it?

This is my XSL:

<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
version="2.0"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";>

    <xsl:param name="class">PersonList</xsl:param>
    <xsl:param name="subclass">rdfs:subClassOf</xsl:param>

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


Thank you. Regrads,

Izaskun

Current Thread