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

RE: XML result of Schema validation

From: Michael Kay <mike@saxonica.com>
Date: Fri, 21 Apr 2006 10:43:58 +0100
To: "'Matheson, Jack K'" <jack.k.matheson@intel.com>, <xmlschema-dev@w3.org>
Message-ID: <007001c66528$1d2ccb90$6401a8c0@turtle>
RE: XML result of Schema validation
Which spec are you reading? For the effect on an XSLT transformation or on
XQuery, you need to understand
 
(a) the PSVI generated by the schema processor
 
(b) the mapping from the PSVI to the XDM: see
http://www.w3.org/TR/xpath-datamodel/#const-psvi
 
Regarding your specific questions:
 
- if the stylesheet/query looks at text nodes or string values, it will
normally see the values before whitespace normalization. If it looks at
typed values it will normally see the values after such normalization.
Processors are allowed to reconstruct the string value (and the text nodes)
from the typed value, but I think this is only likely to happen in practice
when you store the data in an XML-enabled relational database.
 
- yes, default values are added to the XDM document.
 
Michael Kay
http://www.saxonica.com/


  _____  

From: xmlschema-dev-request@w3.org [mailto:xmlschema-dev-request@w3.org] On
Behalf Of Matheson, Jack K
Sent: 20 April 2006 16:05
To: xmlschema-dev@w3.org
Subject: XML result of Schema validation



I'm having trouble finding information on the XML result of a Schema
validation; in particular, what happens when the result of a validation acts
as the input to a transformation. Does a stylesheet see
whitespace-normalized versions of text values from the input document? Also,
are default values for elements and attributes inserted for the stylesheet
to see?

 

It's certainly possible that I'm simply reading the spec incorrectly, so any
help is appreciated!

 

Thanks,

-Jack
Received on Friday, 21 April 2006 09:44:15 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
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-2007 All Rights Reserved.