You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by sa...@ca.ibm.com on 2002/06/03 15:16:11 UTC

[PSVI] full support is available

Hi all,

Now the full PSVI information can be retrieved from XNI augmentation.

>From within an XMLDocumentHandler (DOM/SAX parsers, for example), one can
1. Get an ElementPSVI from the XNI augmentation of the validation root
(normally the root element);
2. Get XSModel from it by calling ElementPSVI#getSchemaInformation();
3. Get a list of XSNamespaceItem by XSModel#getNamespaceItems();
4. From each XSNamespaceItem, get its target namespace, components of that
namespace, and document locations that contribute to that namespace.

There are things that need to be revisited:
1. Method names: getIsXXX.
2. How to represent annotations.
3. How to represent a document information item (the [document] PSVI
property "http://www.w3.org/TR/xmlschema-1/#sd-document").

Future plans:
- Convert preloaded grammars to XSModel, so that users can examine schema
components in preloaded grammars;
- Provide PSVI via DOM (possibly controlled by a feature)

Cheers,
Sandy Gao
Software Developer, IBM Canada
(1-905) 413-3255
sandygao@ca.ibm.com


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


RE: [PSVI] full support is available

Posted by nitesh gautam <ni...@intersolutions.stpn.soft.net>.
Kindly unsubscribe me.

-----Original Message-----
From: Fabio Riccardi [mailto:fabio@xqrl.com]
Sent: Thursday, June 13, 2002 11:06 AM
To: xerces-j-dev@xml.apache.org
Subject: Re: [PSVI] full support is available


Hi,

is there a way of figuring out the actual type of the members of a list?

If I have something like:

     <xsd:simpleType name="valList">
         <xsd:list>
             <xsd:simpleType>
                 <xsd:union memberTypes="xsd:int xsd:float xsd:string"/>
             </xsd:simpleType>
         </xsd:list>
     </xsd:simpleType>

all I can retrieve is the type of the list itself, but I couldn't find any
way of getting to the types of the actual data items...

Am I missing something?

Thanks for your help, ciao,

  - Fabio

On Monday, June 3, 2002, at 06:16 AM, sandygao@ca.ibm.com wrote:

> Hi all,
>
> Now the full PSVI information can be retrieved from XNI augmentation.
>
>> From within an XMLDocumentHandler (DOM/SAX parsers, for example), one can
> 1. Get an ElementPSVI from the XNI augmentation of the validation root
> (normally the root element);
> 2. Get XSModel from it by calling ElementPSVI#getSchemaInformation();
> 3. Get a list of XSNamespaceItem by XSModel#getNamespaceItems();
> 4. From each XSNamespaceItem, get its target namespace, components of that
> namespace, and document locations that contribute to that namespace.
>
> There are things that need to be revisited:
> 1. Method names: getIsXXX.
> 2. How to represent annotations.
> 3. How to represent a document information item (the [document] PSVI
> property "http://www.w3.org/TR/xmlschema-1/#sd-document").
>
> Future plans:
> - Convert preloaded grammars to XSModel, so that users can examine schema
> components in preloaded grammars;
> - Provide PSVI via DOM (possibly controlled by a feature)
>
> Cheers,
> Sandy Gao
> Software Developer, IBM Canada
> (1-905) 413-3255
> sandygao@ca.ibm.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-dev-help@xml.apache.org


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


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


Re: [PSVI] full support is available

Posted by Fabio Riccardi <fa...@xqrl.com>.
Hi,

is there a way of figuring out the actual type of the members of a list?

If I have something like:

     <xsd:simpleType name="valList">
         <xsd:list>
             <xsd:simpleType>
                 <xsd:union memberTypes="xsd:int xsd:float xsd:string"/>
             </xsd:simpleType>
         </xsd:list>
     </xsd:simpleType>

all I can retrieve is the type of the list itself, but I couldn't find any 
way of getting to the types of the actual data items...

Am I missing something?

Thanks for your help, ciao,

  - Fabio

On Monday, June 3, 2002, at 06:16 AM, sandygao@ca.ibm.com wrote:

> Hi all,
>
> Now the full PSVI information can be retrieved from XNI augmentation.
>
>> From within an XMLDocumentHandler (DOM/SAX parsers, for example), one can
> 1. Get an ElementPSVI from the XNI augmentation of the validation root
> (normally the root element);
> 2. Get XSModel from it by calling ElementPSVI#getSchemaInformation();
> 3. Get a list of XSNamespaceItem by XSModel#getNamespaceItems();
> 4. From each XSNamespaceItem, get its target namespace, components of that
> namespace, and document locations that contribute to that namespace.
>
> There are things that need to be revisited:
> 1. Method names: getIsXXX.
> 2. How to represent annotations.
> 3. How to represent a document information item (the [document] PSVI
> property "http://www.w3.org/TR/xmlschema-1/#sd-document").
>
> Future plans:
> - Convert preloaded grammars to XSModel, so that users can examine schema
> components in preloaded grammars;
> - Provide PSVI via DOM (possibly controlled by a feature)
>
> Cheers,
> Sandy Gao
> Software Developer, IBM Canada
> (1-905) 413-3255
> sandygao@ca.ibm.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-dev-help@xml.apache.org


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


XSListSimpleType missing [was: [PSVI] full support is available]

Posted by Fabio Riccardi <fa...@xqrl.com>.
Hi,

I'm using the PSVI interfaces and everything seems to work fine, except 
that there is no way to access the individual item type(s) for a list. 
This is quite annoying for lists of union types.

In a future release would it be possible to add something like 
XSListSimpleType as defined by:

http://lists.w3.org/Archives/Member/w3c-
archive/2001Apr/att-0138/01-xml-schema-cm-
api.html#SchemaCM-XSListSimpleType

Regards,

  - Fabio

On Monday, June 3, 2002, at 06:16 AM, sandygao@ca.ibm.com wrote:

> Hi all,
>
> Now the full PSVI information can be retrieved from XNI augmentation.
>
>> From within an XMLDocumentHandler (DOM/SAX parsers, for example), one can
> 1. Get an ElementPSVI from the XNI augmentation of the validation root
> (normally the root element);
> 2. Get XSModel from it by calling ElementPSVI#getSchemaInformation();
> 3. Get a list of XSNamespaceItem by XSModel#getNamespaceItems();
> 4. From each XSNamespaceItem, get its target namespace, components of that
> namespace, and document locations that contribute to that namespace.
>
> There are things that need to be revisited:
> 1. Method names: getIsXXX.
> 2. How to represent annotations.
> 3. How to represent a document information item (the [document] PSVI
> property "http://www.w3.org/TR/xmlschema-1/#sd-document").
>
> Future plans:
> - Convert preloaded grammars to XSModel, so that users can examine schema
> components in preloaded grammars;
> - Provide PSVI via DOM (possibly controlled by a feature)
>
> Cheers,
> Sandy Gao
> Software Developer, IBM Canada
> (1-905) 413-3255
> sandygao@ca.ibm.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-dev-help@xml.apache.org


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