MarkLogic Server 11.0 Product Documentation
xhtml:clean

xhtml:clean(
   $doc as node()?
) as node()?

Summary

Clean up the XHTML: pruning empty spans, consolidating adjacent spans, etc.

Parameters
doc The source XHTML.

Example

  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"))
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy