W3C home > Mailing lists > Public > public-multilingualweb-lt-tests@w3.org > June 2013

NIF testing with HTML5

From: Felix Sasaki <fsasaki@w3.org>
Date: Mon, 10 Jun 2013 18:33:07 +0200
Message-ID: <51B5FFC3.8040309@w3.org>
To: Multilingual Web LT-TESTS Public <public-multilingualweb-lt-tests@w3.org>
Hi all, esp. Leroy and Phil,

the fix for the conformance section
http://lists.w3.org/Archives/Public/public-multilingualweb-lt/2013Jun/0035.html

[
We need "3-4: After processing ITS information on the basis of conformance
clauses 3-1 and 3-2, an application MAY convert an HTML5 document to
NIF, using the algorithm described in Section 5.7: Conversion to NIF."
In the " Conformance Type 3: Processing Expectations for ITS Markup in
HTML" section to cover NIF processing.
]

Made clear that we should test for NIF conversion of HTML documents. I 
would propose the two attached input files
locqualityissue-html5-nif-1.html
locqualityissue-html5-nif-2.html

adapted from the spec. Would that work?

The good news is now that Leroy and Phil don't have to implement an HTML 
processor for that: just tidy the HTML files, e.g. via
http://services.w3.org/tidy/tidy
and then run them through jirka's stylesheet to convert HTML5+ITS into 
XHTML+ITS
https://github.com/kosek/html5-its-tools/blob/master/xsl/html2xhtml.xsl
The result is XHTML with ITS markup, the XML version. That you can 
process like the other LQI input files in the NIF conversion.

You can do the conversion via the w3c xslt servlet
http://www.w3.org/2005/08/online_xslt/

A sample call using first online HTML tidy and then Jirka's stylesheet 
is here

http://services.w3.org/xslt?xslfile=https%3A%2F%2Fraw.github.com%2Fkosek%2Fhtml5-its-tools%2Fmaster%2Fxsl%2Fhtml2xhtml.xsl&xmlfile=http%3A%2F%2Fservices.w3.org%2Ftidy%2Ftidy%3FdocAddr%3Dhttp%253A%252F%252Fwww.w3.org%252FTR%252Fits20%252Fexamples%252Fhtml5%252FEX-locQualityIssue-html5-local-2.html&content-type=&submit=transform

Best,

Felix


Received on Monday, 10 June 2013 16:33:45 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:32:58 UTC