<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello Michael,<div><br></div><div>The same issue arises when one uses XQuery server-side code together with XQuery client-side code: either the XQuery application server has to serialise the content of the script tag as a CDATA section instead of escaping special characters, or the browser/plug-in should decode entity references before executing the script (in the latter case, the query is not easy to read).</div><div><br></div><div>Kind regards,</div><div>Ghislain<br><br><div><blockquote type="cite"><div><font class="Apple-style-span" color="#000000"><br></font>I think this requirement will keep coming up. It's frankly embarrassing that<br>in XProc, queries have to be escaped as CDATA. If we solved this problem,<br>all sorts of opportunities would open up - XQuery used for assertions in<br>XSD, XSD schemas embedded in XQuery modules, XQuery embedded in XSLT, XSLT<br>embedded in XQuery, XQuery embedded in XForms.<br><br></div></blockquote></div></div></body></html>