RE: [xsl] access the root element

Subject: RE: [xsl] access the root element
From: drkm <darkman_spam@xxxxxxxx>
Date: Thu, 3 Nov 2005 16:41:45 +0100 (CET)
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 
Tilichargez cette version sur http://fr.messenger.yahoo.com

Current Thread