OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: XML and entropy, again

[ Lists Home | Date Index | Thread Index ]

>  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
        http://lists.xml.org/archives/xml-dev/200412/msg00129.html


"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."


Cheers,
Dimitre Novatchev 







 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS