Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>As @Kevin Peno pointed out, HTML5 is not XML, and although that initially rubbed me the wrong way, I've come to terms with it and decided to treat HTML5 as a final output format only, instead of a document with the potential to be re-used and transformed again via XML tools.</p> <p>My suggestion, if you wish to go down this path, is to pass your HTML5 markup through a cleanup process that guarantees valid XML (tools such as Tidy come to mind).</p> <p>Your other option is to re-think your approach a bit and treat the HTML as a final output format. Use a different markup language to store content, and possibly even structure of your website.</p> <p>For example, you could use Markdown for content (easily converted to HTML). If you prefer to stick with XML, perhaps define your own DSL, or re-use one such as <a href="http://www.docbook.org/specs/cs-docbook-simple-1.1.html" rel="nofollow">Simplified DocBook</a>. That has worked well for me in the past.</p> <p>Then leverage XSL to transform your XML mash-up into HTML5, or any output format that you please.</p> <p>Now, to try to answer your question directly, you will definitely need to "tidy" up the HTML5 markup to be sure it is valid XML before using a validation tool such as RelaxNG or XML Schema. As for your RNG schema file, I would suggest looking for an XHTML 1.0 Strict .rng first, and then perusing the HTML5 spec and adding elements and attributes as needed. A quick google search turned up <a href="http://www.thaiopensource.com/relaxng/xhtml/" rel="nofollow">the following</a>.</p> <p><em>In case you're deciding between RNG and XML Schema, save yourself some headaches and go RelaxNG. This is my opinion, but I've used both extensively and RelaxNG is so much more human-readable and easier to work with!</em></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload