Christian
The Text output method serializes the instance of the data model by outputting the string value of the document node created by the markup generation step of the phases of serializationwithout any escaping.
A newline character in the instance of the data model MAY be output using any character sequence that is conventionally used to represent a line ending in the chosen system environment.
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 I 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