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

AW: XHTML representation

From: Peintner, Daniel (ext) <daniel.peintner.ext@siemens.com>
Date: Thu, 18 Feb 2016 12:58:26 +0000
To: Brett Zamir <brettz9@yahoo.com>, "public-exi@w3.org" <public-exi@w3.org>
Message-ID: <D94F68A44EB1954A91DE4AE9659C5A980FE40EEB@DEFTHW99EH1MSX.ww902.siemens.net>
Hi Brett,

Thank you for sharing your ideas and your project with us.

I do understand the desire of having a readable format without CSS and/or XSLT and I think it is a valid approach.

Besides I think your approach suffers in a similar way as the current solution does. Our ultimate goal is to have an XML schema (or respectively EXI grammars) that describes the expected content. Assuming we have such a schema, EXI offers even better processing&compaction results.

In your mapping the element <dt> defines the key while <dd> is meant to hold the value. Correct?
A "person" example could be the following:

<dl itemscope="" itemtype="http://brett-zamir.me/ns/microdata/json-as-html/2" xmlns="http:/www.w3.org/1999/xhtml">

Let’s assume one would like to restrict the content in a way so that it consist of a key “id” with a number, a required “lastname” typed as string and an optional “firstname” typed as string. 

Please state me wrong but I think it is not possible to restrict the above XML instance in such a way by simply using XML schema constructs.
Do you see a possibility?


-- Daniel


Von: Brett Zamir [mailto:brettz9@yahoo.com] 
Gesendet: Freitag, 12. Februar 2016 21:20
An: public-exi@w3.org
Betreff: XHTML representation

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">
    <dd>a string (no child element needed for this primitive as string is the default)</dd>
        <ol start="0">
            <li>arr item 1 (string)</li>
            <li>arr item 3 (string)</li>
            <dd>Some (string) value</dd>
            <dd>Another (string) value</dd>

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

Received on Thursday, 18 February 2016 12:58:57 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 18 February 2016 12:58:57 UTC