cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Torsten Curdt" <tcu...@dff.st>
Subject RE: clean page
Date Thu, 29 Jun 2000 13:01:43 GMT
> > > >   <xsl:template match="@*|node()" priority="-1">
> > > >     <xsl:copy>
> > > >       <xsl:apply-templates select="@*|node()"/>
> > > >     </xsl:copy>
> > > >   </xsl:template>
> > > It works! But I loose tag attributes this way... (e.g. <header
> > > option="something">
> > > becomes <header>) How can I solve that...
> > With <xsl:copy-of> probably. What you need is a good XSLT book. There's
> > "XSLT" by Michael Kay - read that through and then report back to this
> > list (next year ;-)
> Well, got it yesterday ;-) (really!)
> ...please, may I still ask some questions anyway? PLEASE! ;-)

ok.. shouldn't this do a deep copy and preserve the attributes?!

<xsl:template match="*|@*|comment()|text()|node()">
    <xsl:copy-of select="."/>
</xsl:template>
--
Torsten

Mime
View raw message