xsl-list
[Top] [All Lists]

[xsl] [XSLT] Asking or Update variable

2008-03-12 04:08:58
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()[(_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> 


Thank you. Regrads,

Izaskun 


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