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
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--