I get duplicate attribute error when using xerces for this code:

            doc= new DocumentImpl(); 
            root =
doc.createElementNS("http://www.w3.org/1999/XSL/Transform";,
"xsl:stylesheet");
            root.setAttribute("version", "1.0");
            root.setAttribute("xmlns:java",
"http://xml.apache.org/xslt/java";);
            root.setAttribute("xmlns:xsl",
"http://www.w3.org/1999/XSL/Transform";);
            root.setAttribute("exclude-result-prefixes", "java");

            doc.appendChild( root );                     // Add Root to
Document     

The error occurs because it creates attribute xmlns:xsl twice.  But, using
the same code with crimson, it doesn't create xmlns:xsl attribute twice and
therefore, no error.  I also tried commenting out this line

           root.setAttribute("xmlns:xsl",
"http://www.w3.org/1999/XSL/Transform";);

Then when running under crimson, it cause me error that says xmlns:xsl
attribute is not defined.  I get a null xsl when I tried commenting that
line out with xerces.  Is this a bug, or am I doing something wrong.  Please
help!

Thanks a lot.
Malia



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to