|
Subject: [xsl] xsl:number and including nodes with xsl:key From: Denis Haskin <denis@xxxxxxxxxxxxxxxxxx> Date: Thu, 28 Aug 2003 23:02:40 -0400 |
<test> <extra myid="extraid"><name>Extra item</name></extra> <item> <name>Item one</name> <name>Item two</name> <name>Item three</name> <insert ref="extraid"/> </item> </test>
<xsl:template match="insert">
<xsl:variable name="d" select="key('testkey',@ref)"/>
<xsl:apply-templates select="$d" mode="include"/>
</xsl:template><xsl:template match="name"> <xsl:number/> - <xsl:value-of select="."/> </xsl:template>
<xsl:template match="extra" mode="include"> <xsl:apply-templates/> </xsl:template>
1 - Item one 2 - Item two 3 - Item three 1 - Extra item
1 - Item one 2 - Item two 3 - Item three 4 - Extra item
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] Announce: Public XSL training, G. Ken Holman | Thread | Re: [xsl] xsl:number and including , Bill Keese |
| [xsl] Announce: Public XSL training, G. Ken Holman | Date | [xsl] {java} JNDI lookup for a file, Robert Koberg |
| Month |