Re: [xsl] Use of data() function

Subject: Re: [xsl] Use of data() function
From: John Snelson <john.snelson@xxxxxxxxxx>
Date: Tue, 04 Mar 2008 16:07:14 +0000
A node doesn't have a typed value if it is an instance of a complex type without mixed content.

John

Andrew Welch wrote:
In the definition of the data() function:

http://www.w3.org/TR/xpath-functions/#func-data

it says:

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

(using Saxon 9.0.0.3)


thanks


--
John Snelson, Oracle Corporation            http://snelson.org.uk/john
Berkeley DB XML:        http://www.oracle.com/database/berkeley-db/xml
XQilla:                                  http://xqilla.sourceforge.net

Current Thread