Hi Jan,
XQuery 1.1 (or 3.0) will officially support the definition of serialization parameters within a query. This feature has already been integrated in BaseX; please try this:
declare option output:indent "no"; declare option output:method "html"; ...
More info is found at: http://www.w3.org/TR/xquery-11/#id-serialization
Hope this helps, Christian
On Tue, Oct 26, 2010 at 11:04 PM, Jan Vlčinský jan.vlcinsky@gmail.com wrote:
Hi According to what I found it might be quite implementation specific. In http://www.stylusstudio.com/xquerytalk/201004/003992.html%C2%A0I found some instructions Using Saxon: declare namespace saxon = "http://saxon.sf.net/"; declare option saxon:output "indent=no"; declare option saxon:output "method=html";
Using eXist: declare namespace exist = "http://exist.sourceforge.net/NS/exist"; declare option exist:serialize "method=html indent=no"
Is there any simple trick to do that? Thanks Jan -- Jan Vlčinský
___________________________
Christian Grün University of Konstanz Department of Computer & Information Science D-78457 Konstanz, Germany Tel: +49-7531-88-4449, Fax: +49-7531-88-3577 http://www.inf.uni-konstanz.de/~gruen