Hi,

If  Iunderstand the XSD spec correctly, you should not (or even cannot)
declare the namespace:
    xmlns:xml="http://www.w3.org/XML/1998/namespace";
in any XML document.  It is assumed automagically by a schema validator when
encountering an element like:

    <foo xml:lang="en">

However, you must include the definitions in your schema, as follows:

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

When testing against the current Castor CVS, the import statement is not
sufficient, by itself.  I must also add an xmlns:xml declaration, which
should not be required.  What's the right solution?  Should Castor
internally add this namespace declaration so that attributes like xml:lang
will be valid?

Cheers,
  Dave Carlson

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to