Emmanuel Pietriga wrote:
> What about offering a pipeline, allowing users to take their data either
> before or after resolving the content part ?
>
> Both formats (which might actually only be one since there does not seem
> to be that much difference between the two) would be defined explicitly,
> but the content-resolving step (in which you loose some information from
> the perspective of what layout was intended) would be optional.
A good point. It certainly sounds worthwhile to me. In the meantime,
here's a stab at a schema for the pre-resolution output.
FYI, I'll be on vacation starting some time this Friday, back at work
the Tuesday after next.
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="
http://www.w3.org/2001/XMLSchema">
<xsd:annotation>
<xsd:documentation xml:lang="en">
Schema for Fresnel output results.
</xsd:documentation>
</xsd:annotation>
<xsd:element name="results" type="FresnelResults"/>
<xsd:complexType name="FresnelResults">
<xsd:sequence>
<xsd:element name="resource" type="FresnelResource" minOccurs="0"
maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="FresnelResource">
<xsd:sequence>
<xsd:element name="content" type="FresnelContents" minOccurs="0"
maxOccurs="1"/>
<xsd:element name="title" type="xsd:string" minOccurs="1"
maxOccurs="1"/>
<xsd:element name="property" type="FresnelProperty" minOccurs="1"
maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="class" type="xsd:string"/>
<xsd:attribute name="uri" type="xsd:string"/>
</xsd:complexType>
<xsd:complexType name="FresnelProperty">
<xsd:sequence>
<xsd:element name="content" type="FresnelContents" minOccurs="0"
maxOccurs="1"/>
<xsd:element name="label" type="FresnelLabel" minOccurs="1"
maxOccurs="1"/>
<xsd:element name="values" type="FresnelValues" minOccurs="1"
maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="class" type="xsd:string"/>
<xsd:attribute name="uri" type="xsd:string"/>
</xsd:complexType>
<xsd:complexType name="FresnelValues">
<xsd:sequence>
<xsd:element name="contents" type="FresnelContents" minOccurs="0"
maxOccurs="1"/>
<xsd:element name="value" type="FresnelValue" minOccurs="1"
maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="FresnelValue">
<xsd:choice>
<xsd:element name="title" type="xsd:string" maxOccurs="1"/>
<xsd:element name="resource" type="FresnelResource" maxOccurs="1"/>
</xsd:choice>
<xsd:attribute name="class" type="xsd:string"/>
<xsd:attribute name="output-type" type="xsd:string"/>
</xsd:complexType>
<xsd:complexType name="FresnelLabel">
<xsd:sequence>
<xsd:element name="contents" type="FresnelContents" minOccurs="0"
maxOccurs="1"/>
<xsd:element name="title" type="xsd:string" minOccurs="1"
maxOccurs="1"/>
</xsd:sequence>
<xsd:attribute name="class" type="xsd:string"/>
</xsd:complexType>
<xsd:complexType name="FresnelContents">
<xsd:sequence>
<xsd:element name="before" type="xsd:string" minOccurs="0"
maxOccurs="1"/>
<xsd:element name="after" type="xsd:string" minOccurs="0"
maxOccurs="1"/>
<xsd:element name="first" type="xsd:string" minOccurs="0"
maxOccurs="1"/>
<xsd:element name="last" type="xsd:string" minOccurs="0"
maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
Received on Wed Oct 05 2005 - 22:15:23 EDT