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

Re: normalize-space and sequence

Subject: Re: normalize-space and sequence
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Wed, 26 Sep 2007 18:01:55 +0100
Re:  normalize-space and sequence
On 26/09/2007, Michael Kay <mike@xxxxxxxxxxxx> wrote:
> > I think I may have been using copy-of to start with, then
> > switched to value-of but by that time had altered the schema...
>
> Copy-of will copy the text nodes rather than the typed value of the element.

That explains it.  It's good to know it's possible, and how to get there.

> The data model actually allows systems to reconstruct the text nodes from
> the typed value, but I don't think it's a good idea and Saxon doesn't do it.

I think any alteration of the data through validation is a Very Bad
Thing, so I would never use it or rely on it.

So.... validation can add things (default values) and take them away
(typed as xs:token).  Any others?

-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

Current Thread

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
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.