marklogic - How to get xdmp:tidy() to tidy up HTML5? -


With new HTML5 elements and elements, how can you get xdmp: tidy ()? Code> to recognize those people in HTML5?

If I have an html page in which something happens:

    

And then try something: xdmp: tidy (xdmp: document-get ("home.html"))

Errors such as getting:

  & lt; Section & gt; Not recognized! Unexpected & lt; Section & gt; & Lt; Header & gt; Not recognized! Unexpected & lt; Header & gt;   

Is there any alternative that I can send to xdmp: tidy () to handle it?

The new-blocklevel-tags option specifying the new HTML tags Try to use You can include several elements by separating them with a comma or place. You should get the expected output with errors, but the warnings will still be visible.

See it in cq:

xdmp: tidy (xdmp: document-get ("home.html"), & lt; option xmlns = "xdmp: clean" & Gt; & lt; new-blocklevel-tag & gt; header section & lt; / new-blocklevel-tags & gt; & lt; / options & gt;)

Click for a good reference about adding (block level, inline, empty) which should work as an alternative to xdmp: This is the exact information, but it is a bit hard to get, there are so many options!

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -