Numbering Output

  <xsl:template match="PERIODIC_TABLE">
    <body>
          <xsl:for-each select="ATOM">
             <xsl:sort select="NAME"/>
            <xsl:number value="position()"/>. <a href="#{SYMBOL}">
            <xsl:value-of select="NAME"/></a><br />
         </xsl:for-each>
        <xsl:apply-templates  select="ATOM">
             <xsl:sort select="ATOMIC_NUMBER" data-type="number"/>
        </xsl:apply-templates>
      </body>
  </xsl:template>

View Transformed Document in Browser
Previous | Next | Top | Cafe con Leche

Copyright 2002 Elliotte Rusty Harold
Elliotte Rusty Harold
Last Modified October 18, 2002