You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Ulrich Mayring <ul...@denic.de> on 2000/04/27 13:19:31 UTC
Bug "fixed" with XSP stylesheets and attributes
Hi people,
I'm referring to my bug report, where I said that attributes are not
copied correctly from the XML through the XSP onto the XSL (this is the
same procedure as employed by the clean-page.xml sample). Although
Stefano couldn't reproduce the error, I now found a work-around.
Previously the copying of tags and attributes in the XML was done like
this:
<xsl:template match="*">
<xsl:copy>
<xsl:apply-templates/>
</xsl:copy>
</xsl:template>
Attributes are lost that way. It works correctly when using:
<xsl:template match="*">
<xsl:copy-of select="."/>
</xsl:template>
Perhaps this is even how it is supposed to work, but then I wouldn't
understand that Stefano couldn't reproduce this behavior :)
Ulrich
--
Ulrich Mayring
DENIC eG, Systementwicklung