Hi All,

      I'm trying the following snippet

      xquery version "1.0-ml";

    let $div := xdmp:quote(
     <div xmlns="http://www.w3.org/1999/xhtml"; xml:space="preserve">
        <br/>
     </div>
    )
return
(
           element root {
                              xdmp:unquote($div)
                             }
                             ,
             xdmp:unquote($div)
)


And I'm getting


<root>
  <div xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml";><br
clear="none"/></div>
</root>
<?xml version="1.0" encoding="UTF-8"?>
<div xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml";><br/></div>


And according to HTML5 the clear attrib in br is obsolete (deprecated)

The culprit here is the namespace

 xmlns="http://www.w3.org/1999/xhtml";

If I remove it then it works fine but empty elements are converted to
self-closing which is again not in compliance with HTML5

The same snippet works fine in 6.0.1x though


Any help is appreciated.

I DO NOT want ML to modify the content in any aspect, is there some way to
achieve it?
Please help me out here!

Thanks in advance
Raghu
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to