You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Steven Noels <st...@outerthought.org> on 2003/04/23 15:34:21 UTC
Re: [Lenyacms-dev] Document xml standardization
On 22/04/2003 12:23 Christian Egli wrote:
> Felix Maeder <fe...@wyona.com> writes:
>
>
>>I think we should also try to standardize the document xml to some
>>extent.
>
>
> Very good idea.
>
> Just a few comments (uncommented stuff gets +1):
>
>
>> <lenya:doctype>Doctype of the document. Will be used to determine
>>what pipeline (xslt etc.) to use</lenya:doctype>
>
>
> Does it make sense to hardwire the doctype of the document itself?
> Isn't this redundant with the schema or dtd declaration?
Don't know whether this is what you are looking for, but if you want to
assign different handling to content being passed across the Cocoon
pipeline depending on its 'type' (grammar), you might have a look at the
SourceType action in Forrest: http://xml.apache.org/forrest/cap.html
</Steven>
--
Steven Noels http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
Read my weblog at http://blogs.cocoondev.org/stevenn/
stevenn at outerthought.org stevenn at apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-dev-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-dev-help@cocoon.apache.org
Re: [Lenyacms-dev] Document xml standardization
Posted by Felix Maeder <fe...@wyona.com>.
As a follow-up to the discussion about a standardized document xml I
tried to update the proposed xml according to the discussion. The main
difference is that the use of the lenya namespace would be restricted to
the sections <lenya:header> and <lenya:metadata> whereas the root and
the body element would be in the reign of the doctype-specific xml. That
means that any standard xml (like xhtml or xdoc) or any custom-defined
xml can be used in combination with the lenya-specific extensions (with
its own namespace).
Further, if the root elements depends on the doctype, we can use the
Forrest SourceType action to determine the doctype and to select the
pipeline accordingly (through the URIParametrizer).
What do you think?
This is the updated proposal:
<!--
The xml of a doctype can be defined by the integrator at will
(using his own namespace)
The sections <lenya:meta> and <lenya:header> are inserted underneath
the root element to allow for cms standard functionality like editing
of metadate or rendering of overviews
-->
<any_root_element>
<!-- the root element indicates the doctype -->
<lenya:meta>
<!--
Deprecated: dates should be coded using the dc:date and sub-elements
<lenya:publication-date>Date when the document was first
published</lenya:publication-date>
<lenya:modification-date>Date when the document was last
published</lenya:modification-date>
-->
<dc:title>These are the dublin core meta data</dc:title>
<dc:creator></dc:creator>
<dc:subject></dc:subject>
<dc:description></dc:description>
<dc:publisher></dc:publisher>
<dc:contributor></dc:contributor>
<dc:date>First published date</dc:date>
<!-- FIXME:
It is not clear yet how the modification date should be encoded
-->
<dc:type></dc:type>
<dc:format></dc:format>
<dc:identifier></dc:identifier>
<dc:source></dc:source>
<dc:language></dc:language>
<dc:relation></dc:relation>
<dc:coverage></dc:coverage>
<dc:rights></dc:rights>
</lenya:meta>
<lenya:header>
<lenya:page-title>Page Title</lenya:page-title>
<!--
Deprecated: the navigation title will be stored as "label" element
in the sitetree.xml
<lenya:nav-title>Title that is displayed in the navigation
(optional, if it does not exists, page-title is used)</lenya:nav-title>
-->
<lenya:html-title>Title that appears in the browser
window (optional)</lenya:html-title>
<lenya:abstract>Abstract that can be used on an overview
page</lenya:abstract>
</lenya:header>
<any_body_element>
<any_element>Here comes the doctype specific xml.</any_element>
</any_body_element>
</any_root_element>
-Felix
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-dev-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-dev-help@cocoon.apache.org