Content of tidy_1.xq example
(: tidy a html using different tidy options :)
import module namespace html="http://www.zorba-xquery.com/modules/converters/html";
import schema namespace html-options="http://www.zorba-xquery.com/modules/converters/html-options";
html:parse('<title>Foo</title><p>Foo!',
<options xmlns="http://www.zorba-xquery.com/modules/converters/html-options" >
<tidyParam name="output-xml" value="yes" />
<tidyParam name="doctype" value="omit" />
<tidyParam name="quote-nbsp" value="no" />
<tidyParam name="char-encoding" value="utf8" />
<tidyParam name="newline" value="LF" />
<tidyParam name="tidy-mark" value="no" />
</options>)