[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: modify the tag name of a given List Node
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|