I tried that but I get this error:
<warning line="68" column="9">&lt;section&gt; is not approved by W3C</warning>
<warning line="73" column="9">&lt;header&gt; is not approved by W3C</warning>

Date: Tue, 6 Sep 2011 15:31:22 -0600
From: lisph...@gmail.com
To: general@developer.marklogic.com
Subject: Re: [MarkLogic Dev General] How to get xdmp:tidy() to tidy up HTML5?

You can add elements and attributes that are new to HTML5 as part of the 
<new-blocklevel-tags>, <new-inline-tags> and <new-empty-tags> options.


On Tue, Sep 6, 2011 at 3:03 PM, Geert Josten <geert.jos...@daidalos.nl> wrote:

Hi Ryan, 
Good question! J I am afraid HTML5 is a bit too new for the current tidy in 
MarkLogic Server. Let’s hope it gets upgraded soon.
 Meanwhile you could pass in an input-xml option, but that requires input to be 
well-formed I guess, and I think it disables several HTML cleanup options as 
well. Not sure this will work for you..
 Kind regards,
Geert 
Van: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] Namens seme...@hotmail.com

Verzonden: dinsdag 6 september 2011 22:05
Aan: general@developer.marklogic.com
Onderwerp: [MarkLogic Dev General] How to get xdmp:tidy() to tidy up HTML5?
 With the new doctype and elements that are part of HTML5, how do you get 
xdmp:tidy() to recognize those in HTML5?

If I have an html page that contains something like:<!DOCTYPE html><html>    
<header>blah</header>
    <section>blah</section>and then try something like: 
xdmp:tidy(xdmp:document-get("home.html"))
I get errors like: 
<section> is not recognized! discarding unexpected <section><header> is not 
recognized! discarding unexpected <header>
Are there some options I can send to xdmp:tidy() to get it to handle it?


thanks,
Ryan
_______________________________________________


General mailing list

General@developer.marklogic.com

http://developer.marklogic.com/mailman/listinfo/general




-- 
Keith
"Do what you can, with what you have, where you are." - Theodore Roosevelt


_______________________________________________
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general                         
                  
_______________________________________________
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to