W3C home > Mailing lists > Public > public-exi@w3.org > February 2016

XHTML representation

From: Brett Zamir <brettz9@yahoo.com>
Date: Fri, 12 Feb 2016 13:20:12 -0700
To: public-exi@w3.org
Message-ID: <56BE3E7C.8020006@yahoo.com>
Might you consider using an XHTML representation in place of your own 
XML tags? This would offer the benefit of being readable without 
additional CSS styling as well as potential editing within WYSIWYG editors.

My project at https://github.com/brettz9/jhtml aims to fulfill this 
purpose. Demo at http://brettz9.github.io/jhtml/ . Here is the 
responsible HTML representing the object on the page:

<dl itemscope="" 
itemtype="http://brett-zamir.me/ns/microdata/json-as-html/2" 
xmlns="http:/www.w3.org/1999/xhtml"><dt>string-key</dt><dd>a string (no 
child element needed for this primitive as string is the 
default)</dd><dt>boolean-key</dt><dd><i>false</i></dd><dt>number-key</dt><dd><i>3</i></dd><dt>null-key</dt><dd><i>null</i></dd><dt>array-key</dt><dd><ol 
start="0"><li>arr item 1 (string)</li><li><i>true</i></li><li>arr item 3 
(string)</li></ol></dd><dt>object-key</dt><dd><dl><dt>nested-key-1</dt><dd>Some 
(string) value</dd><dt>nested-key-2</dt><dd>Another (string) 
value</dd></dl></dd></dl>


My goal, as in the spirit of the microformats project, was to avoid 
non-visible markup as much as possible.

Brett
Received on Friday, 12 February 2016 20:20:43 UTC

This archive was generated by hypermail 2.3.1 : Friday, 12 February 2016 20:20:43 UTC