cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From KOZLOV Roman <r-koz...@opencascade.com>
Subject Re: Simple XSL problem, but NEED HELP!
Date Thu, 28 Mar 2002 13:01:58 GMT
Hi,

To copy all types of all level sub-nodes you can use copy-of tag:
<xsl:copy-of select="some_element"/>

In this case you need not special template with for-each processing.

Best regards.
    Roman

"Hahn Kurt (CHA)" wrote:

> Actually, the problem was something else, somebody else just pointed me to
> check for different namespaces, and that solved the problem, I needed to
> reference the elements with their corresponding NS.
>
> Thanks
>
> -----Message d'origine-----
> De: TREGAN Fabien [mailto:fabien.tregan@airbus.com]
> Date: jeudi, 28. mars 2002 10:45
> ю: 'cocoon-users@xml.apache.org'
> Objet: RE: Simple XSL problem, but NEED HELP!
>
> >-----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>
>
> ---------------------------------------------------------------------
> 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>


---------------------------------------------------------------------
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