(* TODO provide a better usage string *)
let usage_string configuration =
sprintf
-"<?xml version=\"1.0\"?>
-<html xmlns=\"%s\" xmlns:helm=\"%s\">
+{xxx|<?xml version="1.0"?>
+<html xmlns="%s" xmlns:helm="%s">
<head>
<title>HTTP Getter's help message</title>
</head>
Available commands:
</p>
<p>
- <b><kbd><a href=\"/help\">help</a></kbd></b><br />
+ <b><kbd><a href="/help">help</a></kbd></b><br />
display this help message
</p>
<p>
<b><kbd>getxslt?uri=URI[&patch_dtd=(yes|no)]</kbd></b><br />
</p>
<p>
- <b><kbd><a href=\"/update\">update</a></kbd></b><br />
+ <b><kbd><a href="/update">update</a></kbd></b><br />
</p>
<p>
- <b><kbd><a href=\"clean_cache\">clean_cache</a></kbd></b><br />
+ <b><kbd><a href="clean_cache">clean_cache</a></kbd></b><br />
</p>
<p>
<b><kbd>ls?baseuri=regexp&format=(txt|xml)</kbd></b><br />
</p>
<p>
- <b><kbd>getalluris?format=(<a href=\"/getalluris?format=txt\">txt</a>|<a href=\"/getalluris?format=xml\">xml</a>)</kbd></b><br />
+ <b><kbd>getalluris?format=(<a href="/getalluris?format=txt">txt</a>|<a href="/getalluris?format=xml">xml</a>)</kbd></b><br />
</p>
<p>
- <b><kbd><a href=\"/getempty\">getempty</a></kbd></b><br />
+ <b><kbd><a href="/getempty">getempty</a></kbd></b><br />
</p>
<h2>Current configuration</h2>
<pre>%s</pre>
</body>
</html>
-"
+|xxx}
xhtml_ns helm_ns
version configuration
let empty_xml =
-"<?xml version=\"1.0\"?>
+{xxx|<?xml version="1.0"?>
<!DOCTYPE empty [
<!ELEMENT empty EMPTY>
]>
<empty />
-"
-
+|xxx}