cocoon-users mailing list archives

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


>-----Message d'origine-----
>De: Andreas Hartmann [mailto:user@cocooncenter.de]

>Hi,

</>

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

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

>
>Greetings,
>Andreas


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message