Altova Mailing List Archives

Re: XML and entropy, again

From: "Dimitre Novatchev" <dnovatchev@-----.--->
To: xml-dev@-----.---.---
Date: 12/21/2004 7:47:00 PM
>  I wonder, however, about the
> assertions made for the appropriateness of XQuery and XSLT, e.g.
> "converting a DocBook document into WordML or vice versa would be
> impossible in XQuery".  It gets back into our XSLT vs XQuery
> permathread -- do the two have radically different capabilities with
> respect to handling recursive structures and/or recursive alorithms,
> or are they more or less different syntaxes for the same capabilities?

To quote Mike Kay's post in xml-dev comparing the corresponding XSLT and 
XQuery code for an identity transformation

"But in fact there's a bigger issue - the XQuery code is wrong. It loses the
namespaces from the source document. Perhaps I'm missing something, but I
can't see any way to solve this. XQuery may be computationally complete, but
it's not actually closed over the data model - there is no way of generating
a namespace dynamically. As far as I can see at the moment, that's a
stopper, and this exercise has to be coded in XSLT.

Of course, I'm sure there are other problems where XQuery has the edge."

Dimitre Novatchev


These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.