Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: XML result of Schema validation

From: "Michael Kay" <mike@--------.--->
To: "'Matheson, Jack K'" <jack.k.matheson@-----.--->, <xmlschema-dev@--.--->
Date: 4/21/2006 11:44:00 AM
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@w... [mailto:xmlschema-dev-request@w...] On
Behalf Of Matheson, Jack K
Sent: 20 April 2006 16:05
To: xmlschema-dev@w...
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



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent