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 2003/09/12 21:28:22 UTC

DO NOT REPLY [Bug 5133] - ProgrammaticDOMTest fails with constructed XSL DOM

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=5133>.
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=5133

ProgrammaticDOMTest fails with constructed XSL DOM

richcao@ca.ibm.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |PatchAvailable



------- Additional Comments From richcao@ca.ibm.com  2003-09-12 19:28 -------
It appears that the problem (in SmoketestOuttakes.java) lies on line 763:
After building the element that will serve as the root of the stylesheet, we
attempt to add the namespace declaration as an attribute.

xslBuiltElem.setAttributeNS(nsNamespace, "xmlns:xsl", xslNamespace);

The DocumentBuilder is already set to be namespace aware, so I don't think we
need to explicitly declare the namespace. Commenting out this line fixes the
testcase. Also not that when we create the stylesheet from a Document or
DocumentFragment using the helper method appendIdentityDOMXSL, we do not
explicitly set the namespace.