cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrius Sabanas <an...@taide.lt>
Subject Re: how to copy...
Date Thu, 13 Jul 2000 16:35:31 GMT
Jeremy Quinn wrote:

> something like this?
> 
> <xsl:template match="mynode">
>         <xsl:for-each select="*">
>                 <xsl:apply-templates/>
>         </xsl:for-each>
> </xsl:template>
> 
> with this at the end of your stylesheet ....
> 
> <xsl:template match="*|@*|text()">
>         <xsl:copy>
>                 <xsl:apply-templates select="*|@*|text()"/>
>         </xsl:copy>
> </xsl:template>


This also works, but with one exception - if you use <xsl:import>, 
all imported templates are overriden by this last one.


-- 
Andrius Sabanas
mailto:andsh@taide.lt
http://metclub.node.lt

Mime
View raw message