Re: Sample Fresnel XML output

From: Stefano Mazzocchi <stefanom_at_mit.edu>
Date: Fri, 09 Sep 2005 14:41:46 -0400

Ryan Lee wrote:

I don't know what the end goal of this is, but I'll look at it from a
publishing-ease point of view.

> <?xml version="1.0" encoding="iso-8859-1"?>
> <!DOCTYPE results PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
>
> <!-- comments welcome... -->
>
> <results xmlns="http://www.w3.org/2004/09/fresnel-tree">
> <resource class="this-resource">
> <title>Ryan Lee</title>
> <content>
> <before>Person: </before>
> </content>

how about <title><content type="before">Person: </content>Ryan
Lee</title> instead? (type="before") so that it could be differentiated
from type="after".

> <property class="this-property" uri="http://xmlns.com/foaf/0.1/name">
> <content/>
> <label class="this-label">
> <content/>
> <title>name</title>

and here just <title>name</title> indicates that there is no content.

> </label>
> <values>
> <content/>
> <value class="this-value">
> <title>Ryan Lee</title>
> </value>
> </values>
> </property>
> <property class="this-property"
> uri="http://xmlns.com/foaf/0.1/surname">
> <content/>
> <label class="this-label">
> <content/>
> <title>Surname</title>
> </label>
> <values>
> <content/>
> <value class="this-value">
> <title>Lee</title>
> </value>
> </values>
> </property>
> <property class="this-property foaf-depict"
> uri="http://xmlns.com/foaf/0.1/depiction">
> <content/>
> <values>
> <content/>
> <value class="this-value" output-type="image">
> <resource class="this-resource"
> uri="http://ryanlee.org/photodb/image-display?photo_id=119&amp;size=sm">
>
> <title>http://ryanlee.org/photodb/image-display?photo_id=119&amp;size=sm</title>
>
> <content/>
> </resource>
> </value>
> </values>
> </property>
> </resource>
> <resource class="this-resource">
> <title>Stefano Mazzocchi</title>
> <content>
> <before>Person: </before>
> </content>
> <property class="this-property" uri="http://xmlns.com/foaf/0.1/name">
> <content/>
> <label class="this-label">
> <content/>
> <title>name</title>
> </label>
> <values>
> <content/>
> <value class="this-value">
> <title>Stefano Mazzocchi</title>
> </value>
> </values>
> </property>
> </resource>
> </results>

rest looks fine/easy from a publishing point of view. Interesting
exercise could be to come up with a CSS stylesheet for this XML schema
and see where you hit a wall.

-- 
Stefano Mazzocchi
Research Scientist                 Digital Libraries Research Group
Massachusetts Institute of Technology            location: E25-131C
77 Massachusetts Ave                   telephone: +1 (617) 253-1096
Cambridge, MA  02139-4307              email: stefanom at mit . edu
-------------------------------------------------------------------
Received on Fri Sep 09 2005 - 18:37:26 EDT

This archive was generated by hypermail 2.3.0 : Thu Aug 09 2012 - 16:40:51 EDT