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

Re: Use of data() function

Subject: Re: Use of data() function
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Tue, 4 Mar 2008 16:37:29 +0000
Re:  Use of data() function
On 04/03/2008, John Snelson <john.snelson@xxxxxxxxxx> wrote:
> A node doesn't have a typed value if it is an instance of a complex type
>  without mixed content.

On 04/03/2008, Michael Kay <mike@xxxxxxxxxxxx> wrote:
> It occurs when the node is an element with element-only content (which
>  necessarily means it is schema-validated). For example the person element in
>  <person><first>Michael</first><last>Kay</last></person>

Thanks, I see a lot of this is in the XDM spec... (which I've never
had the pleasure of reading until now)

The key sections are:

(type-valued section heading)

Out of interest, what is the reasoning behind allowing a mixed content
element's typed-value to be its string value, but making it an error
for element-only content?

Is it that you can't guarantee to get a string from element only
content, but mixed content you can (somehow) ?

Andrew Welch
Kernow: http://kernowforsaxon.sf.net/

Current Thread


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.
First Name
Last Name
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-2013 All Rights Reserved.