On 3 Sep 2009, at 22:10, Justin Makeig wrote:
The short answer is: Make sure you're using correctly namespaced XHTML. For example, take a look at the following as evaluated by MarkLogic Server 4.1-1:

xquery version "1.0-ml";

<div></div>,
<script></script>,
<textarea></textarea>,
<div xmlns="http://www.w3.org/1999/xhtml";></div>,
<script xmlns="http://www.w3.org/1999/xhtml";></script>,
<textarea xmlns="http://www.w3.org/1999/xhtml";></textarea>

=>

<div/>
<script/>
<textarea/>
<div xmlns="http://www.w3.org/1999/xhtml";></div>
<script xmlns="http://www.w3.org/1999/xhtml";></script>
<textarea xmlns="http://www.w3.org/1999/xhtml";></textarea>

The serializer won't collapse empty div, script, and textarea elements if they're in the XHTML namespace. Hopefully this helps. Please let me know if you have further questions or concerns.

Is that enough? I know that in the past, I've had trouble with empty <em/> tags being misinterpreted by browsers.

-Dom
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to