>We will be working on providing full PSVI support

I've been asked to start trying to prototype soon... and initially I don't
need the full PSVI (specific facets and such), just the ability to ask
whether an element of complex type Customer was derived from complext type
PersonWithAddress, or whether PartNumber is encoded as a positiveInteger,
or whether Timeclock can be viewed as a list of dateTimes...

>To check whether one schema type 'D' is derived from
>another one 'B', the right way would be to recursively get
>the base type of 'D' and compare it with 'B'.

If the base type is always the immediate ancestor rather than the
highest-level ancestor, that would certainly work.  Is there a way I can
ask the Xerces schema validator what a type's base type is?

It would probably be significantly more convenient and more efficient if
the schema APIs walked the ancestry tree for us -- providing an
encapsulated schema-type equivalent of instanceOf -- but that's a
refinement we can add later. For now, I just need advice on how to take
that first step...





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to