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=2727 *** shadow/2727 Sat Jul 21 05:45:11 2001 --- shadow/2727.tmp.27840 Tue Jul 24 23:23:16 2001 *************** *** 2,9 **** | Identity transformation produces non well-formed output | +----------------------------------------------------------------------------+ | Bug #: 2727 Product: XalanJ2 | ! | Status: NEW Version: 2.2.x | ! | Resolution: Platform: Other | | Severity: Normal OS/Version: Other | | Priority: Other Component: Xalan | +----------------------------------------------------------------------------+ --- 2,9 ---- | Identity transformation produces non well-formed output | +----------------------------------------------------------------------------+ | Bug #: 2727 Product: XalanJ2 | ! | Status: RESOLVED Version: 2.2.x | ! | Resolution: FIXED Platform: Other | | Severity: Normal OS/Version: Other | | Priority: Other Component: Xalan | +----------------------------------------------------------------------------+ *************** *** 52,55 **** xlink:type="simple"><LABEL>Hello, world!</LABEL></NODE></OUTLINE> Note the empty attribute/value ="". The problem disappears if you add a newline ! character before the <NODE> start tag. --- 52,69 ---- xlink:type="simple"><LABEL>Hello, world!</LABEL></NODE></OUTLINE> Note the empty attribute/value ="". The problem disappears if you add a newline ! character before the <NODE> start tag. ! ! ------- Additional Comments From [EMAIL PROTECTED] 2001-07-24 23:23 ------- ! Committed SAX2DTM, revision 1.13, to fix this problem. Attributes which contain ! a namespace prefix are indicated by placing a negative number in the appropriate ! entry in the m_dataOrQName array. The absolute value of this number is an entry ! in m_data. However, in this example, there were no text nodes before the first ! namespaced attribute so the entry in m_data had an array index of 0. This ! resulted in an entry of zero, not a negative number, in m_dataOrQName. This ! situation got several routines which tested for < 0 confused. I looked at ! several ways of fixing this but decided to just always allocate ! m_data.elementAt(0) entry to a dummy entry. The other solutions involved ! runtime checking which could slow down this piece of code. I also committed ! namespace99(.xml .xsl .out) in test/tests/contrib/garypeskin to include a test ! for this situation in the test suite.
