Subject: Re: [xsl] modify the tag name of a given List Node From: Red Light <skydelta98@xxxxxxxxx> Date: Fri, 23 Apr 2010 10:35:34 -0700 (PDT) |
Hi Martin , (sorry i'm still a noob at xslt programming !) i got my xsl template file like this : <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 ? and thanks
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] modify the tag name of a , Martin Honnen | Thread | Re: [xsl] modify the tag name of a , Martin Honnen |
Re: [xsl] Finding nodes between oth, Mukul Gandhi | Date | Re: [xsl] modify the tag name of a , Martin Honnen |
Month |