xsl-list
[Top] [All Lists]

Re: [xsl] Use of data() function

2008-03-04 09:09:19
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--