xsl-list
[Top] [All Lists]

Template Problem!!

2005-02-13 04:29:13
Related to my previous post. I have found a with a template.

Using the following XML Structure:

<?xml version="1.0"?>
<tree>
  <tree_node id="7" value="Test">
    <tree_node id="8" value="Test Sub"/>
      <tree_node id="9" value="Test Sub One">
      <tree_node id="10" value="Test Sub Two">
        <tree_node id= 11  value= Test Sub Three />
      </tree_node>
    </tree_node>
  </tree_node>
</tree>

And these XSL Templates: 
 
<xsl:template match="/">
    <table class="{$css}">
      <xsl:apply-templates/>
    </table>
  </xsl:template>
  
  <xsl:template match="//tree_node">
      
      <xsl:value-of select="@value"/>
          
  </xsl:template>

  I am wanting to display all tree_node values. However, 
when I execute my stylesheet containg the above templates. Only 
the top most tree node element appears to be matched.

How can I rectify this?

Cheers, 
Adam 
 
NB: "Pray as if everything depended upon God and work as if everything
depended upon man."



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