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

RE: XML result of Schema validation

From: Matheson, Jack K <jack.k.matheson@intel.com>
Date: Fri, 21 Apr 2006 08:03:26 -0700
Message-ID: <7E8B4A336692D04F92E59A16539D82B569715F@fmsmsx408.amr.corp.intel.com>
To: <xmlschema-dev@w3.org>
RE: XML result of Schema validation
I was trying to find my answer in XML Schema Part 1: Structures (and
also the primer).

When you say 'it will normally see the values before whitespace
normalization', would this apply mostly to XSLT 1.0 processors? Also,
does 'normally' mean that behavior is slightly undefined?

 

Is it necessary to construct the XDM from the PSVI before acting as
input to an XSLT 1.0 processor?

 

Thanks again!

-Jack

 

________________________________

From: Michael Kay [mailto:mike@saxonica.com] 
Sent: Friday, April 21, 2006 4:44 AM
To: Matheson, Jack K; xmlschema-dev@w3.org
Subject: 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 15:03:57 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.