View Single Post
  #2 (permalink)  
Old March 8th, 2005, 04:42 AM
joefawcett's Avatar
joefawcett joefawcett is offline
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Something like:
Code:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text"/>
<xsl:template match="/mags">
  <xsl:apply-templates select="mag/*"/>
</xsl:template>

<xsl:template match="mag/*">
<xsl:value-of select="position()"/><xsl:text>: </xsl:text><xsl:value-of select="name()"/><xsl:text>#xa;</xsl:text>
</xsl:template>
</xsl:stylesheet>
--

Joe (Microsoft MVP - XML)
Reply With Quote