You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2001/11/12 19:55:33 UTC
DO NOT REPLY [Bug 4344] -
Attempted copy-of an attribute may miss error scenario
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
David_Marston@lotus.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|transformation with deleting|Attempted copy-of an
|document-element |attribute may miss error
| |scenario
------- Additional Comments From David_Marston@lotus.com 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>