Subject: RE: 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/
|