xmlns="http://www.w3.org/XML/1998/namespace";

This is invalid as per the namespace spec (NE05 of [1]).

[1] http://www.w3.org/XML/xml-names-19990114-errata

Cheers,
Sandy Gao
Software Developer, IBM Canada
(1-905) 413-3255
[EMAIL PROTECTED]



                                                                                
                                                       
                      "Benson Cheng"                                            
                                                       
                      <[EMAIL PROTECTED]        To:       <[EMAIL PROTECTED]>   
                                             
                      core.net>                cc:                              
                                                       
                                               Subject:  Xerces 2.2.1 reports 
xml namespace error                                      
                      12/05/2002 02:35                                          
                                                       
                      PM                                                        
                                                       
                      Please respond to                                         
                                                       
                      xerces-j-user                                             
                                                       
                                                                                
                                                       
                                                                                
                                                       



One of my schemas has the following:

<?xml version="1.0" encoding="UTF-8" ?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema";
             xmlns:xml="http://www.w3.org/XML/1998/namespace";>

<xsd:import namespace="http://www.w3.org/XML/1998/namespace"; schemaLocation
="xml.xsd"/>

             <xsd:complexType        name="FreeFormText">
                 <xsd:simpleContent>
                   <xsd:extension base="xsd:string">
                         <xsd:attribute          ref="xml:lang"/>
                   </xsd:extension>
                 </xsd:simpleContent>
             </xsd:complexType>
.......
</xsd:schema>

And the xml.xsd file has the following:

<?xml version="1.0" encoding="UTF-8" ?>
<xsd:schema
             xmlns:xsd="http://www.w3.org/2001/XMLSchema";
             xmlns="http://www.w3.org/XML/1998/namespace";
             targetNamespace="http://www.w3.org/XML/1998/namespace";>

             <xsd:attribute          name="lang"
type="xsd:language"/>
</xsd:schema>

The xerces reports the following errors:
org.xml.sax.SAXParseException: The prefix "xml" cannot be bound to any
namespace other than its usual namespace; neither can the namespace for
"xml" be bound to any prefix other than "xml".

I have no problems with xerces 1.4.4 with above the same schema sets.  Can
someone please help me to resolve this problem.

thanks,
Benson.


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





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

Reply via email to