cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From TREGAN Fabien <>
Subject RE: Simple XSL problem, but NEED HELP!
Date Thu, 28 Mar 2002 09:44:39 GMT

>-----Message d'origine-----
>De: Andreas Hartmann []



>At least in your example the <row> tag has no value, so it is
>absolutely correct that nothing is returned. If you use <xsl:value-of>,
>you will only get the value of the matched tag.

If you want a copy of all the tag, us xsl:copy.

If you need to copy all the tag, attributs, and inner tag, you can use
recursive-copy by using a named template and applying your template to the
node to be copyed.

I think that the template should look like :

<xsl:template name="copyall">
    <xsl:for-each select="@*|node()">
      <xsl:call-templates name="copyall"/>

hope this works, i've not practiced for a long time :)


Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message