<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <link rel="stylesheet" href="advice.css" type="text/css"/>
    </head>
    <body>
        <h1>HTML standard Serialisation</h1>
        <p>
The standard serialisation options for an XHTML generating Xquery script are:
<code>declare option exist:serialize "method=xhtml omit-xml-declaration=no indent=yes encoding=iso-8859-1 
        doctype-public=-//W3C//DTD&#160;XHTML&#160;1.0&#160;Transitional//EN 
        doctype-system=http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'";</code>
The html head should look like
<code>&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
    &lt;meta content="text/html; charset=iso-8859-1" http-equiv="content-type" /&gt;
    ...
&lt;/head&gt;</code>
        </p>
        <h2>Encoding</h2>
        <p>There is a question about the appropriate encoding - iso-8859-1, UTF-8 or nothing. 
There is an apparent problem with the data entry of accented characters etc when using the explicit encodings in eXist. 
If this is an issue, leave it out.</p>
        <h2>Highlight Matches</h2>
        <p>To suppress the addition of exist:match tags when using the free-text match operators, use the serialisation ption
<code>highlight-matches=none</code>
        </p>
    </body>
</html>
