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:09:29 -0000

> "If the node does not have a typed value an error is raised 
> [err:FOTY0012]."
> 
> When would that error occur?  data() seems to work fine on 
> untyped XML...
> 

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>

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