I understand it would be nice to have the complete datatype hierarchy for
the simple datatype.
But atleast for now, I guess we need to have the topmost typename and the
reference to the base datatypevalidator.
We should essentially fill in the hierarchy (using XPath maybe) at a later
stage.
I would probably expect the same of complex types too. Xerces does a good
job in exploding the hierarchy as it would
appear in the instance document but information on what complex type cause
the element to explode will be required.

Thanks
Kiran


-----Original Message-----
From: Gareth Reakes [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 03, 2002 4:58 AM
To: [EMAIL PROTECTED]
Subject: Re: Derived Schema datatypes


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" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> 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: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 

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



---------------------------------------------------------------------
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