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

Re: Ten new XQuery, XSLT 2.0 and XPath 2.0 Working Drafts


post schema validation infoset xslt
At 10:28 AM 5/9/2003 -0400, Mike Champion wrote:
>On Fri, 09 May 2003 09:47:15 -0400, Jonathan Robie 
><jonathan.robie@d...> wrote:
>>Let's be clear: the PSVI is not in the XQuery Data Model. Nobody wanted 
>>the PSVI in the data model, there's a lot of stuff in the PSVI that we 
>>don't need, and it's defined at the wrong level.
>
>You will perhaps perhaps forgive people who read  section 3.3:
>
>"Some aspects of the data model are dependent upon XML Schema validity 
>assessment; this document describes how to determine those aspects of the 
>data model from a Post Schema Validation Infoset. [Definition: A Post 
>Schema Validation Infoset, or PSVI, is the augmented infoset produced by 
>an XML Schema validation episode.]."
>
>and remain unclear on this point :-)  You're right of course that there 
>are many aspects of PSVI that are not there, but "PSVI" is a shorthand for 
>"validation time augmentation of nodes with XSDL type information" to many 
>people.

Right - some aspects of the data model depend on XML Schema validity 
assessment - this refers largely to the type names of W3C XML Schema simple 
and complex types. Here's the crucial principle:

>If a PSVI is not available, then the data model is constructed from the 
>Infoset in a manner that is compatible with the expectations of 
>well-formed or DTD-validated parsing of an XML document.

I think that's important. Look at 3.6 for an example showing how that works 
out:

If the [validity] property exists and is "valid":

    ( This says how to extract the type names from the PSVI of a schema )

If the [validity] property does not exist on this node or any of its 
ancestors, Infoset-only processing is applied:

    ( This says how to maintain the types ID, IDREF, IDREFS, ENTITY, 
ENTITIES, NMTOKEN, or NMTOKENS
       for DTD-validated Infosets )

Otherwise, xs:anyType for elements or xs:anySimpleType for attributes.

    ( In other words, the stuff is untyped. )

One of these three branches tells how to create the information from a PSVI 
- and you can only do that if there is a PSVI. There are a bunch of 
specific mappings for nils, specific types etc. If you aren't working from 
a PSVI, they aren't there.

>And of course the Right Thing is to read the freakin' specs and make 
>specific comments to the appropriate w3c comments list!

Absolutely!

Jonathan



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.