
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"))