[Lenyacms-dev] Document xml standardization

Felix Maeder <[email protected]> Thu, 17 Apr 2003 18:02:53 +0200
Newsgroups gmane.comp.cms.wyona.devel
Message-ID <[email protected]>
I think we should also try to standardize the document xml to some 
extent. The benefit would be that we could have a generic handling of 
metadata and generic solutions for navigation and overview pages. I 
suggest three sections: metadata, header and body (although I find it 
often difficult to decide if something is "metadata" or "data" - a title 
or an abstract are part of the data but they could also be considered 
metadata).

Suggested xml:

<lenya:document>
<!--
Metadata would be dublin core with custom lenya metadata and custom 
publication metadata if needed
-->
   <lenya:meta>
     <lenya:doctype>Doctype of the document. Will be used to determine 
what pipeline (xslt etc.) to use</lenya:doctype>
     <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>The following are the standard dublin core 
metadata</dc:title>
     <dc:creator></dc:creator>
     <dc:subject></dc:subject>
     <dc:description></dc:description>
     <dc:publisher></dc:publisher>
     <dc:contributor></dc:contributor>
     <dc:date></dc:date>
     <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>
<!--
The header part contains elements that are standardized and that are 
embedded in every lenya document regardless of the doctype. These 
elements are important to be able to provide standardized navigations 
and overview pages
-->
   <lenya:header>
     <lenya:page-title>Page Title</lenya:page-title>
     <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>
<!--
In the body part all the doctype specific xml is enclosed
-->
   <lenya:body>
     <some-custom-tag>Here comes the doctype specific xml.</some-custom-tag>
   </lenya:body>
</lenya:document>


Problems/open questions:
- How is the xhtml doctype handled? The idea of the xhtml doctype is 
that the user can upload any xhtml document, which is then inserted into 
the "frame" provided by the cms (resp. the body part of the xhtml is 
inserted). How do we then provide the standard lenya and dc elements? 
Shall we store them in a different file and make the values (metadata, 
navigation title etc.) editable with the bitflux or xopus?
- How is metadata for multilingual pages handled? If every language has 
its own document, there would also be different metadata for every 
language (that have to be entered and maintained). Does this make sense? 
Or should the metadata be stored in different file?


-Felix




-- 
Felix Mäder          [email protected]     +41 1 272 9163
                      Wyona AG, Hardstrasse 219, CH-8005 Zürich
Open Source CMS      http://www.wyona.org http://www.wyona.com