You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Andrew Hain <an...@digitalbrain.com> on 2001/12/18 11:47:55 UTC
Question about XML schema datatypes
I am having a problem with XML Schemas, resolving some of the datatypes.
For example, in my schema I specify "xsd:integer", and all is fine. But
if I use the derived "xsd:int", the parser fails to find the type ("Type
not found in <the XMLSchema namespace>"). I also have the same problem
with the primitive type "anyURI".
How are these types supported? Are they built into the parser, or loaded
from an external source? Why might some fail to resolve, when others
from the same namespace are present?
Thanks for any help.
Andy Hain
Digitalbrain plc
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
Re: Question about XML schema datatypes
Posted by Tinny Ng <tn...@ca.ibm.com>.
Andrew,
Which version of Xerces-C++ are you using?
Both the built-in datatypes "int" and "anyURI" are added in Xerces-C++
1.5.2. If you are using Xerces-C++ 1.5.1 or below, then the support were
not there yet. Please upgrade to our latest release.
Tinny
Andrew Hain wrote:
> I am having a problem with XML Schemas, resolving some of the datatypes.
>
> For example, in my schema I specify "xsd:integer", and all is fine. But
> if I use the derived "xsd:int", the parser fails to find the type ("Type
> not found in <the XMLSchema namespace>"). I also have the same problem
> with the primitive type "anyURI".
>
> How are these types supported? Are they built into the parser, or loaded
> from an external source? Why might some fail to resolve, when others
> from the same namespace are present?
>
> Thanks for any help.
>
> Andy Hain
> Digitalbrain plc
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
RE: Question about XML schema datatypes
Posted by "David E. Cleary" <da...@progress.com>.
> For example, in my schema I specify "xsd:integer", and all is fine. But
> if I use the derived "xsd:int", the parser fails to find the type ("Type
> not found in <the XMLSchema namespace>"). I also have the same problem
> with the primitive type "anyURI".
Any types you define are in your namespace, not XML Schema's namespace.
Define a prefix for your target namespace, and set the type attribute in
your element declaration to that prefix.
type="myuri:int"
> How are these types supported? Are they built into the parser, or loaded
> from an external source? Why might some fail to resolve, when others
> from the same namespace are present?
They are loaded from external sources. Any failure to resolve may be due to
the misunderstanding concerning namespaces.
David Cleary
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org