Re: Sample Fresnel XML output

From: Ryan Lee <>
Date: Fri, 09 Sep 2005 15:38:26 -0400

Stefano Mazzocchi wrote:
> 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"
>> "">
>> <!-- comments welcome... -->
>> <results xmlns="">
>> <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".

Are you also suggesting <title>Ryan Lee<content type="after"> is a
person</content></title>? The placement of 'content' elements is quite
intentional - the content modification is related to the element's
parent, so the 'content' element inside the 'values' element only
applies to value items for before and after types; first and last apply
to the set. This was to keep repeated strings from bloating the results.

I guess it's a trade off between compactness and immediate usability -
to do it the way it's currently done assumes somebody will transform the
tree later before showing it to users.

>> <property class="this-property"
>> uri="">
>> <content/>
>> <label class="this-label">
>> <content/>
>> <title>name</title>
> and here just <title>name</title> indicates that there is no content.

I agree and should probably fix that.

> 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.

Good idea.

Ryan Lee       
W3C Research Engineer    +1.617.253.5327
Received on Fri Sep 09 2005 - 19:34:17 EDT

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