RE: non-XML characters in text nodes

> Kay, Michael wrote:
> > I'm not sure if you are trying to say that this is not 
> clearly stated, 
> > or if you are saying that you disagree with the decision we 
> have made.
> 
> Both. But you know what? Never mind.
> 
> I am just trying to figure out whether an implementation is 
> allowed to have non-XML characters in text nodes, and whether 
> a function (any function) can return non-XML characters in a 
> "string"-type object. I'd like to think that a "string", 
> since it *is*, by definition, an xs:string, has no such 
> leeway, but apparently in XSLT-land the rules are relaxed.

We should perhaps be clearer. It IS an error to return such a string. You
can't predict what will happen if you do it. You can't even be sure of
getting a decent error message.

Michael Kay

Received on Friday, 25 October 2002 08:53:56 UTC