Re: Pizza Example
Date: Wed, 07 Apr 2004 20:59:55 GMT
Eric Kaun wrote:
> "Jan Hidders" <jan.hidders_at_REMOVETHIS.pandora.be> wrote in message
>>Eric Kaun wrote: >> >>>3. As another example, XQuery, may have some accidental incidences of >>>closure, but is primarily a reporting tool, in that its output is text
>>>needn't be valid XML or anything else in particular. >> >>?? Are you sure you are not confusing XSL and XQuery?
> I'll have to find my source - are you saying the output of an XQuery
> expression is always well-formed XML? I didn't realize that was the case,
> and thought I remember reading something specifically to the contrary...
Strictly speaking it isn't, because the output is a sequence of items and therefore not always a single document, and the notion of well-formedness is only defined for full documents. But apart from that all fragments in the result always satisfy the requirements for well-formedness for fragments in documents. This is so because they will always belong to the XPath/XQuery data model, which doesn't allow anything that isn't well-formed by definition. You can check the W3C documents if you don't believe me. :-)
- Jan Hidders