Oxygen XML Editor
 
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] Use of data() function


Subject: RE: [xsl] Use of data() function
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 4 Mar 2008 16:54:22 -0000

> >  <person><first>Michael</first><last>Kay</last></person>
> 
> 
> 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?
> 

data-heads vs doc-heads.

The data people felt that saying person='Kay' should be caught as a type
error.

But with mixed content, for example

<title>Water, or H<sub>2</sub>O</title>

it clearly makes sense to say contains(title, 'Water')

Michael Kay
http://www.saxonica.com/


Current Thread
 
© 2002-2008 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy
This website was created & generated with <oXygen/> XML Editor