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

RE: Question regarding PSVI..


RE:  Question regarding PSVI..

that helps. I think if there are constructs like where you check the
results of path expressions as to whether they are instances of some
types, then we need type assignment.

regarding updates -- I had a question how updates work with wildcards.

I presume the following schema is correct..

<xs:element name="billTo">
  <xs:complexType>
    <xs:sequence>
      <xs:element name="name" type="xs:string"/>
      <xs:element name="address" type="xs:string"/>
      <xs:element name="zip" type="xs:integer"/>
      <!-- extension. one can put anything here -->
      <xs:any namespace="#all" processContents="skip" />
    </xs:sequence>
  </xs:complexType>
</xs:element>

now, consider the tree (impractical, but still..)

<billTo>
   <name>ABC</name>
   <address>California</address>
   <zip>90095</zip>
   <zip>90024</zip>
</billTo>

Now consider an update (delete the first zip element) --

<billTo>
   <name>ABC</name>
   <address>California</address>
   <zip>90024</zip>
</billTo>

Now, I hope both the documents are valid w.r.to the schema?? -- also, will
the type assignment for <zip>90024</zip> change during the update??

cheers and regards - murali.

On Wed, 29 May 2002, Dare Obasanjo wrote:

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



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.