xsl-list
[Top] [All Lists]

Re: RE : Still Testing!

2005-02-13 04:33:16
Tempore 12:04:02, die 02/13/2005 AD, hinc in xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com scripsit Adam J Knight <adam(_at_)brightidea(_dot_)com(_dot_)au>:

This is my xsl:template I am using.
It doesn't appear to work, in that the second condition doesn't cause the
display of the appropriate value.

<xsl:template match="tree_node">
        <xsl:if test="parent::tree or parent::tree_node[(_at_)id=$c_node]">
          <xsl:value-of select="@value"/>
      </xsl:if>
        
</xsl:template>

Could it be that this is the only template in your xslt? In that case you should add <xsl:apply-templates/> or otherwise, processing will stop when the first 'tree_node' element level is encountered:

<xsl:template match="tree_node">
<xsl:if test="parent::tree or parent::tree_node[(_at_)id='7']">
          <xsl:value-of select="@value"/>
                <xsl:apply-templates/>
</xsl:if>
</xsl:template>



regards,
--
Joris Gillis (http://www.ticalc.org/cgi-bin/acct-view.cgi?userid=38041)
Laudeo W3C et dona ferens

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