Hi David,
thanks allot. But I have to say I'm a bit baffled. To my understanding
this template copies only all the attributes (which I thought was
<element attribute="...">). How come this copies also the child
elements and the text???
DC> <xsl:template match="*" mode="copy">
DC> <xsl:copy>
DC> <xsl:copy-of select="@*"/>
DC> <xsl:apply-templates mode="copy"/>
DC> </xsl:copy>
DC> </xsl:template>
The element() function seems to copy the comment
as well. What am I doing wrong here?
DC> If you copy an element node then the copy has exatly the same children
DC> as the original (or rather has copies of those children) so it has teh
DC> smae text, comments and child elements.
So for that matter if I <xsl:copy-of select="child::element()"/> it
automatically
produces a deep-copy with which I don't have the opportunity to check
which parts I do and which I do not want to copy, right?
Manuel Baehnisch
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--