Subject: [xsl] position() misunderstanding From: "I-Lin Kuo" <ikuoikuo@xxxxxxxxxxx> Date: Thu, 13 Feb 2003 19:08:19 +0000 |
=== test.xml === <?xml version="1.0" encoding="UTF-8"?>
<Catalog> <Book> <Title>Dune</Title> <Authors>Frank Herbert</Authors> </Book> <Book> <Title>The Stars My Destination</Title> <Authors>Alfred Bester</Authors> </Book> <Book> <Title>SLAN</Title> <Authors>A. E. Van Vogt</Authors> </Book> </Catalog>
<xsl:template match="/"> <content> <xsl:apply-templates/> </content> </xsl:template>
<xsl:template match="Book" > <Book> <xsl:value-of select="Title"/> [<xsl:value-of select="position()"/>] </Book> </xsl:template> </xsl:stylesheet>
=== testresults.xml ==== <?xml version="1.0" encoding="UTF-8"?> <content> <Book>Dune [2] </Book> <Book>The Stars My Destination [4] </Book> <Book>SLAN [6] </Book> </content>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XSLT Namespace Problems, David N Bertoni/Camb | Thread | Re: [xsl] position() misunderstandi, David N Bertoni/Camb |
Re: [xsl] XSLT Namespace Problems, David N Bertoni/Camb | Date | Re: [xsl] Reference to variable can, Wendell Piez |
Month |