Strawman microdata proposal

Hi,

our charter states that we will provide microdata mapping for our
metadata for HTML5. I have taken simple example using ITS 1.0 data
category locNote:

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:its="http://www.w3.org/2005/11/its"
      its:version="1.0">
  <head>
    <title>INBOX</title>
  </head>
  <body>
    <h1>Welcome</h1>
    <p its:locNote="MSGCNT is a number of messages">There are {MSGCNT}
messages in your mailbox.</p>
    <p its:locNote="STGCPT is percentage">Your are using {STGCPT} of
your mailbox capacity.</p>
    …
  </body>
</html>

Then I have studied microdata (http://dev.w3.org/html5/md/) and there is
how I think that we should capture same info using microdata:

<!DOCTYPE html>
<html>
  <head>
    <title>INBOX</title>
  </head>
  <body>
    <h1>Welcome</h1>
    <p itemscope itemtype="http://www.w3.org/2005/11/its">
      <meta itemprop="locNote" content="MSGCNT is a number of messages">
      There are {MSGCNT} messages in your mailbox.
    </p>
    <p itemscope itemtype="http://www.w3.org/2005/11/its">
      <meta itemprop="locNote" content="STGCPT is percentage">
      Your are using {STGCPT} of your mailbox capacity.
    </p>
    …
  </body>
</html>

Not very concise.

Any comments welcomed.

   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 Thursday, 15 March 2012 08:46:35 UTC