Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 91692 invoked by uid 500); 31 Jan 2003 20:37:33 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 91651 invoked from network); 31 Jan 2003 20:37:31 -0000 Subject: default attribute to transformer, reader, SitemapModelComponent, ... From: Andrew Timberlake To: cocoon-dev@xml.apache.org Content-Type: text/plain Organization: Message-Id: <1044045447.12662.84.camel@guru.ddd.co.za> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.1 Date: 31 Jan 2003 22:37:28 +0200 Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I am using Cocoon to create an application which uses stylesheets and resources to present the content to users. The content is managed by a database and the content to be returned is determined by part of the request uri. The application has a default set of stylesheets and resources (images) to display content initially. I would like to be able to change the style for different content based on different stylesheets but to use the default stylesheets when another stylesheet is not available. I am finding this very difficult to explain so I will try to go into detail in this email with examples of the syntax I'd like to use. I need to know if Cocoon is able to do the following in some other way or if some changes need to be made? To simplify the application I'll use the following example. This example is trivial and is purely to try to explain the concept, my application currently has many matchers with many transformations in which only some may be customised. The application displays the results of database tables. The application will generate an xml file of the database table in the same manner for each table. value
The default set of stylesheets will display the table data in an HTML table with a default set of colours, images etc. The pipeline would be as follows I would like to create table specific stylesheets when needed, this would then become But, I would like to fall back on the default stylesheet when a specific stylesheet does not exist. For this the syntax might be as follows where default="" would be a fall-back stylesheet that is used should the src file not be available. I would also need this for resources such as images such as I can see uses of this in generators as well. To repeat the question at the beginning, is there a way to do this with Cocoon as it currently stands or is this something that would need to be added? Does anyone else see this as a useful addition to Cocoon? Which would be the best way to get this functionality into Cocoon? is the default attribute right or should it be something else? I would be more than prepared to implement such functionality if others would like it as well. -- Andrew Timberlake --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org