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/09/03 12:42:36 UTC

[DO NOT REPLY: Bug 3320] xsltc fails conf test copy40 saying attribute outside element

PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
BE LOST SOMEWHERE.

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

*** shadow/3320	Tue Aug 28 14:08:22 2001
--- shadow/3320.tmp.15342	Mon Sep  3 03:42:36 2001
***************
*** 108,111 ****
        <d level="3" origin="Albany">2xd1</d>
      </doc2supplement>
    </doc2>
! </docs>
--- 108,128 ----
        <d level="3" origin="Albany">2xd1</d>
      </doc2supplement>
    </doc2>
! </docs>
! 
! ------- Additional Comments From gthb@dimon.is  2001-09-03 03:42 -------
! It has nothing to do with the xsl:copy element, this will
! happen inside anything that adds an element to the result
! tree, if the xsl:attribute child is preceded by something
! other than:
! - xsl:attribute
! - xsl:if
! - xsl:choose
! (see org.apache.xalan.xsltc.compiler.XslAttribute.java)
! 
! I'm attaching a minimal .xsl and .xml that expose this
! bug, and then a patch that also allows xsl:copy-of. The
! patch also adds a PEND comment asking whether more types
! of objects should be allowed before the xsl:attribute,
! I haven't given that any thought. I also haven't run
! conf test copy40; possibly it passes with this patch.