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 "Bagepalli, Kiran" <kb...@informatica.com> on 2002/10/03 03:49:39 UTC

Derived Schema datatypes

Is there any way to get the information regarding the name of the derived
schema datatype. Currently if it is integer, I get the datatype names as
decimal which is the base type. Is this information retrievable from the
DatatypeValidator.

Thanks
Kiran

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


Re: Derived Schema datatypes

Posted by Gareth Reakes <ga...@decisionsoft.com>.
Hi,
	Kiran, I could do with some advice in this area. I need PSVI to
implement XPath2 but I dont intend to do that until the new year. Until
then I was going to write a new parser that associates eles/attrs with
there lowest base type (the built in schema type) - that is all I need for
basic conformance. Do you think this approach is reasonable and or 
possible?

Gareth


On Thu, 3 Oct 2002, Peter A. Volchek wrote:

> Kiran,
> Unfortunately right now there is no such API that allows to know the simple
> datatype name.
> I had already complained about this and probably posted the bug report (do
> not remember)
> Nevertheless, I had to modify xerces' code to extract such info for my
> project needs.
> 
> I have attached the modified files which you may use to achieve your goal.
> (   XMLCh* getTypeName() const; is that what you need )
> 
> Also, in these sources, I have fixed the simple datatype hierarchy (acc. to
> XMLSchema rec.)
> So it would be good if responsible person in Xerces team (probably Pei Yong
> ?) review them and apply
> 
> Regards,
> Peter A. Volchek
> 
> 
> ----- Original Message -----
> From: "Bagepalli, Kiran" <kb...@informatica.com>
> To: <xe...@xml.apache.org>
> Sent: Thursday, October 03, 2002 4:49 AM
> Subject: Derived Schema datatypes
> 
> 
> > Is there any way to get the information regarding the name of the derived
> > schema datatype. Currently if it is integer, I get the datatype names as
> > decimal which is the base type. Is this information retrievable from the
> > DatatypeValidator.
> >
> > Thanks
> > Kiran
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> > For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
> >
> >
> 

-- 
Gareth Reakes, Head of Product Development  
DecisionSoft Ltd.            http://www.decisionsoft.com
Office: +44 (0) 1865 203192



---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


Re: Derived Schema datatypes

Posted by "Peter A. Volchek" <Pe...@ti.com.od.ua>.
Kiran,
Unfortunately right now there is no such API that allows to know the simple
datatype name.
I had already complained about this and probably posted the bug report (do
not remember)
Nevertheless, I had to modify xerces' code to extract such info for my
project needs.

I have attached the modified files which you may use to achieve your goal.
(   XMLCh* getTypeName() const; is that what you need )

Also, in these sources, I have fixed the simple datatype hierarchy (acc. to
XMLSchema rec.)
So it would be good if responsible person in Xerces team (probably Pei Yong
?) review them and apply

Regards,
Peter A. Volchek


----- Original Message -----
From: "Bagepalli, Kiran" <kb...@informatica.com>
To: <xe...@xml.apache.org>
Sent: Thursday, October 03, 2002 4:49 AM
Subject: Derived Schema datatypes


> Is there any way to get the information regarding the name of the derived
> schema datatype. Currently if it is integer, I get the datatype names as
> decimal which is the base type. Is this information retrievable from the
> DatatypeValidator.
>
> Thanks
> Kiran
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
>
>