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/01/13 20:01:58 UTC

DO NOT REPLY [Bug 16037] New: - A illegal namespace directive is being added to my docuement

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

A illegal namespace directive is being added to my docuement

           Summary: A illegal namespace directive is being added to my
                    docuement
           Product: XalanC
           Version: 1.4.x
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: XalanC
        AssignedTo: xalan-dev@xml.apache.org
        ReportedBy: mark_marsh@agilent.com


I am running into a problem when streaming out a document in Xalan.
A namespace directive is being added to my docuement, and it is illegal
according to Oracle - the Oracle XML data type rejects it.  Their
contention is that name spaces that use 'xml' are reserved:

    http://www.w3.org/TR/REC-xml-names/

    Namespace Constraint: Leading "XML"
    Prefixes beginning with the three-letter sequence x, m, l, in any case
    combination, are reserved for use by XML and XML-related specifications.

My test program uses this input:

    <?xml version="1.0"?>
    <attrLists>
    </attrLists>

And streams this output:

    <?xml version="1.0" encoding="UTF-8"?>
    <attrLists xmlns:xml="http://www.w3.org/XML/1998/namespace">
    </attrLists>

The file from which this comes is:

    ./src/DOMSupport/DOMServices.cpp:
          ::s_XMLNamespacePrefix = XALAN_STATIC_UCODE_STRING("xmlns:xml");

Has anyone else seen this behavior?  Am I missing something?

To run the test program:

    sol/tst t.xml

This was reproduced on:
    SunOS sol8bld 5.8 Generic_108528-14 sun4u sparc SUNW,Sun-Fire-880
    CC: Forte Developer 7 C++ 5.4 2002/03/09