logo       

RE: data() function working correctly?: msg#00131

text.xml.saxon.help

Subject: RE: data() function working correctly?

> In my example I call a
> function, ex:Test,
> which returns a text() node. The first time that I call the
> function it
> returns a text node that contains the integer 5. It is my
> understanding
> that by invoking the data() function on that text node it
> should return the
> atomic (integer) value 5.

No. The typed value of an element or an attribute may be an integer, but the
typed value of a text node is always xdt:untypedAtomic.

http://www.w3.org/TR/xpath-datamodel/#acc-summ-typed-value

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




-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise