Tool (filter) for converting HTML5 to Polyglot Markup?

Context : my HTML5 documents don't need Javascript, animations, forms ... They are "content only." Thus, it can be filtered out about these types of views, it only needs a subset / limitation of the "full-HTML5 view". A good way to express this situation (and others broader!) Is to say: "My documents can be expressed using the Polyglot Markup restrictions."

Question . Is there a tool that converts (or filters out the loss of false information) "any HTML5" in Polyglot XHTML5 ?
Preferably an extension-based tool for the DOM (or XSLT or XQuery).

+4
source share
2 answers

I will not have a complete solution. In my opinion, there are two or even three stages in such a transformation:

Stage 1: get HTML5 with well-formed

There is black art here where you need to ensure that there is no well-structured HTML 5 requirement.

You need this before you have the DOM, before you have any chance of getting tools that expect a function that looks remotely like xml to function.

, : (?) . . : , - , .

, xhtml - (FCKeditor ..)

. <p>para<ul><li>bullet</ul><p>para <p>para</p><ul><li>bullet</li></ul><p>para</p>

2: , Polyglot

, html- , , , polyglot, , html XML.

, XSLT, , , DTD - polyglot (x) html. xhtml5, , , .

, , , , .

3:

? , polyglot (x) html javascript, document.write, . , .

+2

, , , , , . Java regex, PHP. regexplanet.com

: html, . <textarea class="placeholder"/>

: <textarea class="placeholder"></textarea>

Java , <\s*([^\s>]+)([^>]*)/\s*>, , <$1$2></$1>. textarea, no. 1 №. 2. no. 1 2 . 1 .

, .

0

All Articles