xsl-list
[Top] [All Lists]

RE: access the root element

2005-11-03 08:41:45
Kai Hackemesser wrote:

It is a completely wellformed XML file. I try to access the
attributes of the Metrics element (the root element).

    <xsl:template match="/">

  You're not matching on the root element, but the root node.  Think
about the difference between the following templates:

    <xsl:template match="/">
      <xsl:apply-templates select="Metrics"/>
    </xsl:template>

    <xsl:template match="/Metrics">
      ...
    </xsl:template>

    <xsl:template match="Metrics">
      ...
    </xsl:template>

--drkm
















        

        
                
___________________________________________________________________________ 
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger 
Téléchargez cette version sur http://fr.messenger.yahoo.com

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