Re: Practical question: elements or attributes?

On 18.4.2012 10:47, Arle Lommel wrote:
> One other note: Since HTML5 is not XML and cannot take advantage of XSD 1.1 capabilities, even if XSD 1.1 can define the kinds of controls we need, will we have a way to impose them in the HTML5 representation? (I sincerely hope the correct answer is “Arle, the answer to this question is well-known to everyone with a brain, so you obviously lack one, and therefore please leave us alone about such things.”)

HTML5 spec doesn't contain any formal definition of content models
similar to XML schema, but validators are implemented on top of RELAX NG
validation, see: http://about.validator.nu/

Practically in order to customize validator.nu to support our ITS
attributes we (OK, *I*) will create one relatively straightforward RELAX
NG schema defining just its-* attributes and allowing them on any HTML
element.

Hope this makes you day better for your brain and body :-)

    Jirka

-- 
------------------------------------------------------------------
  Jirka Kosek      e-mail: jirka@kosek.cz      http://xmlguru.cz
------------------------------------------------------------------
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
------------------------------------------------------------------

Received on Wednesday, 18 April 2012 08:55:36 UTC