xhtml:clean( $doc as node()? ) as node()?
Clean up the XHTML: pruning empty spans, consolidating adjacent spans, etc.
Parameters | |
---|---|
doc | The source XHTML. |
xquery version "1.0-ml"; import module namespace xhtml = "http://marklogic.com/cpf/xhtml" at "/MarkLogic/conversion/xhtml.xqy"; xhtml:clean(fn:doc("my.xhtml"))
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.