DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4344>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4344

Attempted copy-of an attribute may miss error scenario

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|transformation with deleting|Attempted copy-of an
                   |document-element            |attribute may miss error
                   |                            |scenario



------- Additional Comments From [EMAIL PROTECTED]  2001-11-12 10:55 -------
Tests COPYerr04 (xsl:copy-of) and COPYerr05 (xsl:copy) are designed to set up
the error scenario properly. An error could be raised, or the node not copied.

WORKAROUND: The correct way to move a subtree, attributes and all, under some
other element is to copy the attributes separately and first.
<xsl:template match="source-node">
  <destination-node>
    <xsl:copy-of select="@*"/>
    <xsl:copy-of select="*"/>
  </destination-node>
</xsl:template>

Reply via email to