Subject: Re: [xsl] modify the tag name of a given List Node From: Martin Honnen <Martin.Honnen@xxxxxx> Date: Fri, 23 Apr 2010 19:46:10 +0200 |
<xsl:template match="/rapport">
<!-- here i got my main xsl elements -->
.
.
.
.
<!-- this doesn't work --> <fo:table-row width="100%" > <fo:table-cell padding="0.1cm">
<fo:block text-align="center" font-size="10.0pt" >
<xsl:choose>
<xsl:when test="(/rapport/content/projectDetails/keyword/keywordDetails/key0)">
<xsl:value-of select="/rapport/content/projectDetails/keyword/keywordDetails/key0"/>
</xsl:when>
</fo:table-cell>
</fo:table-row>
</xsl:template>
<xsl:template match="keywordDetails"> <xsl:copy> <xsl:apply-templates select="key"/> </xsl:copy> </xsl:template>
<xsl:template match="key"> <xsl:element name="key{position()}"> <xsl:copy-of select="node()"/> </xsl:element> </xsl:template>
if my understanding is write <xsl:copy-of select="node()"/> will replate the node and i should <keywordDetails><key1>.............
now it doesn't work , am i missing something ?
Martin Honnen http://msmvps.com/blogs/martin_honnen/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] modify the tag name of a , Red Light | Thread | Re: [xsl] modify the tag name of a , Red Light |
Re: [xsl] modify the tag name of a , Red Light | Date | Re: [xsl] modify the tag name of a , Red Light |
Month |