turbo xml gives error which is more specific though :
"Error in http://www.w3.org/2000/10/xml.xsd" . If value is present , 'use' must be one of default or prefixed."
So I guess, the problem is with what I have given in schemaLocation.
What is the valid value for schemaLocation in that case?
Also, note that xerces makes it mandatory to specify schemalocation.
Komal.
"David A. Riggs" wrote:
I believe that if you're importing that namespace in order to use its globally defined
attributes or elements, you need to associate it with a prefix like this:<xsd:schema xmlns:xsd = "http://www.w3.org/2000/10/XMLSchema"
xmlns:xml = "http://www.w3.org/XML/1998/namespace"
elementFormDefault = "qualified"><xsd:import namespace = "http://www.w3.org/XML/1998/namespace"
schemaLocation = "http://www.w3.org/2000/10/xml.xsd"/>Then you can use things in that namespace as long as you qualify them with
the prefix, like this:<xsd:attribute ref = "xml:lang"/>
Hope that helps.
- David A. Riggs
--------------------------------
komal mangtani wrote:> With xerces 1.3.1 and CR for xml schema when I imported
> the standard http://www.w3.org/XML/1998/namespace for use of xml:lang,
> it gets parsed perfect when I use xml spy or turbo xml but with xerces parser it gives error :
> "Globally defined attributes should have use= default or fixed "
> I do not have any attributes in my xml schema, so I guess it is refering to attributes defined in xml.xsd mentioned in
> schemaLocation in import .
> If I do not give schemaLoacation , xerces gives error :
> " File "" not found."
>
> Following is the xml snippet :
> <xsd:schema xmlns:xsd = "http://www.w3.org/2000/10/XMLSchema"
> elementFormDefault = "qualified">
> <xsd:import namespace = "http://www.w3.org/XML/1998/namespace"
> schemaLocation = "http://www.w3.org/2000/10/xml.xsd"/>
>
> Any help is appreciated,
> Komal.
>
> [EMAIL PROTECTED] wrote:
><snip>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]--
David A. Riggs
Science Applications International Corporation - SAIC
(304)284-9000x201 [EMAIL PROTECTED]---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
