[xquery-talk] Replacing an attribute

Michael Kay mike at saxonica.com
Fri Sep 7 08:22:52 PDT 2012


> Yes. I saw that If I write an XSLT stylesheet, then I can call that 
> from marklogic and it all works good...
> I am not too sure, if XSLT is a good approach or if Xquery is a better 
> way of doing things?
>
Generally, XQuery is better than XSLT for extracting specific 
information out of an XML document, and XSLT is better at making small 
changes to a document while leaving most of the content unchanged. Or to 
put it another way, XQuery is better at query and XSLT is better at 
transformation. (XQuery Update is an alternative, though, if available).

Michael Kay
Saxonica


More information about the talk mailing list