Hello,

How about using XHTML:*/@class and relation of
atom:category/@term="class:..." and atom:link/@rel="id:...".
The example is as follows.

---

<entry xmlns="http://www.w3.org/2005/Atom";>
  ...
  <category term="class:Exif2_0" scheme="http://example.org/1998/exif"/>
  <link rel="id:a174nvda3r" href="http://example.org/img/1234.jpg";
type="image/jpeg"/>
  <content type="xhtml">
    <div xmlns="http://www.w3.org/1999/xhtml";>
      <div class="attachments_info">
        <div id="a174nvda3r">
          <a class="link" href="http://example.org/img/1234.jpg";>1234.jpg</a>
          <div class="Exif2_0">
Image width: <span class="ImageWidth">800</span><br/>
Image height: <span class="ImageHeight">600</span><br/>
          </div>
        </div>
      </div>
    </div>
  </content>
</entry>

This format is using atom:category/@scheme instead of namespace.


This format can be extended by using XHTML:*/class and atom:category.
The example is as follows:

<entry xmlns="http://www.w3.org/2005/Atom";>
  ...
  <category term="class:Exif2_1" scheme="http://example.org/2002/exif"/>
  <category term="class:Exif2_0" scheme="http://example.org/1998/exif"/>
  <link rel="id:a174nvda3r" href="http://example.org/img/1234.jpg";
type="image/jpeg"/>
  <link rel="id:vhow3elz4m" href="http://example.org/img/1235.jpg";
type="image/jpeg"/>
  <content type="xhtml">
    <div xmlns="http://www.w3.org/1999/xhtml";>
      <div class="attachments_info">
        <div id="a174nvda3r">
          <a class="link" href="http://example.org/img/1234.jpg";>1234.jpg</a>
          <div class="Exif2_1">
            <div class="Exif2_0">
Image width: <span class="ImageWidth">800</span><br/>
Image height: <span class="ImageHeight">600</span><br/>
            </div>
            <div class="GPSInfo">
Latitude: <span class="Latitude">35.658632</span>°<br/>
Longitude: <span class="Longitude">139.745411</span>°<br/>
Altitude: <span class="Altitude">332.6</span>m<br/>
Timestamp: <span class="Timestamp">2008-01-29T03:00:00Z</span><br/>
            </div>
          </div>
        </div>
        <div id="vhow3elz4m">
          <a class="link" href="http://example.org/img/1235.jpg";>1235.jpg</a>
          <div class="Exif2_1">
            <div class="Exif2_0">
Image width: <span class="ImageWidth">800</span><br/>
Image height: <span class="ImageHeight">600</span><br/>
            </div>
            <div class="GPSInfo">
Latitude: <span class="Latitude">35.658632</span>°<br/>
Longitude: <span class="Longitude">139.745411</span>°<br/>
Altitude: <span class="Altitude">332.6</span>m<br/>
Timestamp: <span class="Timestamp">2008-01-29T03:01:01Z</span><br/>
            </div>
          </div>
        </div>
      </div>
    </div>
  </content>
</entry>

This format is human-readable, machine-readable, extendable and not
disturbing current Atom syndication format.
So, I think this format is good.

-- 
Tatsuya Noyori (^o^)/

Reply via email to