[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Question regarding PSVI..

  • To: "Murali Mani" <mani@C...>
  • Subject: RE: Question regarding PSVI..
  • From: "Dare Obasanjo" <dareo@m...>
  • Date: Wed, 29 May 2002 18:21:50 -0700
  • Cc: <xml-dev@l...>
  • Thread-index: AcIHU5aV0K9bYTnNRiOtztJWip8B4wAHQrKg
  • Thread-topic: Question regarding PSVI..

msxml psvi

> -----Original Message-----
> From: Murali Mani [mailto:mani@C...] 
> Sent: Wednesday, May 29, 2002 1:58 PM
> To: Dare Obasanjo
> Cc: xml-dev@l...
> Subject: RE:  Question regarding PSVI..
> 
> 
> 
> Dare, agreed with what you say about Schema Infoset, actually 
> I also said that it is pretty much useless w.r.to what we 
> were discussing.
> 
> I have some questions regarding PSVI:
> 
> a) specific question: In section 3.3.5 -- there is a 
> statement which says something like "The first (item 
> isomorphic) alternative above is provided for applications 
> such as query processors"... hmm.. actually what is meant by 
> the first alternative -- is it going against the "intuitive" 
> determinism which one might expect???
> 
> Anyways, my actual question is this --
> 
> Is there any application for the type definition associated 
> with an element information item in the PSVI?? My concern is 
> again querying. Now if we assume that every query always 
> tries to start from the root and select a set of nodes based 
> on a path expression, then what we need is type inferencing. 
> The type associated with an element information item in PSVI 
> seems useless here..
> 
> Also, consider element declaration -- that might be needed 
> for checking integrity constraints like how XML Schema 
> defines them. The following may be slightly vague -- there 
> are two other ways of specifying integrity constraints -- 
> using path expressions, or using type names. If path 
> expressions are used, then we do not need element 
> declarations, or type names for element information items. If 
> we use type names, then we need type names for element 
> information items, but I do not think we need to know the 
> element declaration for an element information item.
> 
> Anyways, my question is -- where will the type names and 
> element declarations associated with an element information 
> item in PSVI be used?

I've seen user scenarios where both are needed. 

1.) The type names for element declarations are useful for type based
queries like those that will exist in Xpath 2.0 and XQuery. 

 EXAMPLE: /myco:company-roster/myco:employee[. instance of element of
type myco:managerType] 

where myco:managerType is a complexType defined in the schema. 

2.) Currently MSXML ships with the ability to obtain the Schema Object
Model (SOM) object that represents an element or attribute declaration
from a DOM instance. Our users love it and we are inundiated with
requests to provide similar functionality for the .NET frameworks
version of the DOM. One user scenario involved creating a schema-aware
XML text editor and using the element decls for the particular element
being edited to determine whether the edits were valid or not which was
way more performant than validating on each edit. 




-- 
PITHY WORDS OF WISDOM 
If two wrongs don't make a right, try three. 

This posting is provided "AS IS" with no warranties, and confers no
rights. 



PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.