Loading TOC...

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

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.