[xquery-talk] Serializing using fn:put()

Michael Kay mike at saxonica.com
Tue Mar 22 21:20:31 PST 2011

Sadly, fn:put provides no control over serialization options.

You could consider using the Saxon extension function 
saxon:result-document() instead.


(However, the constraint inherited from XSLT that it can't be called 
while evaluating a function may be a bit restrictive. You might be 
better off using XSLT for this job...)

Michael Kay

On 22/03/2011 20:11, Vyacheslav Zholudev wrote:
> Hi all,
> I'm trying to produce multiple documents from a single XQuery. I chose 
> to use fn:put() for this purpose. (is there a better way?)
> However, an XQuery processor (Saxon) puts an XML declaration "<?xml 
> version="1.0"encoding="UTF-8"?>".
> Is there a way to avoid this? (since the result is not XML). I guess 
> it's implementation-specific, or isn't it?
> Thanks!!!
> Best,
> Vyacheslav
> _______________________________________________
> talk at x-query.com
> http://x-query.com/mailman/listinfo/talk

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://x-query.com/pipermail/talk/attachments/20110322/8056a09e/attachment.htm

More information about the talk mailing list