cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <blorit...@apache.org>
Subject Re: Serving static XML files a la Cocoon-1
Date Thu, 25 Apr 2002 14:56:10 GMT
Peter Flynn wrote:
>>Of course you don't have to put an entry for each new doc : 
> 
> 
> That is not at all obvious from the doc.
> 
> 
>>you simpl=
>>y=20
>>need the most common C2 pipeline:
>>
>><map:match pattern=3D"**.xml">
>>  <map:generate src=3D"{1}.xml"/>
>>  <map:generate src=3D"stylesheet.xsl"/>
>>  <map:serialize/>
>></map:match>
>>
>>This pipeline will process all the .xml files on your server. Does it=
>>=20
>>match your needs?
> 
> 
> Very close, except that all the XML files already identify their
> stylesheet in an xml-stylesheet PI, so Cocoon would need to honor
> this.

Not necessarily.  PIs are nice, but they are not standard accross
all files.  One thing that PIs don't allow is to easily retheme the
entire site without changing the existing template.

Assuming you want to change the XSLT from "oldsite.xsl" to "newsite.xsl"
and still keep the old XSL file for archives--or to switch back to it.

PIs force you to place the information for "oldsite.xsl" in every XML
file.  If you forget to change one file, it will stick out like a sore
thumb.

The new way allows you to change all files in one place.  If you have a
chain of XSLT transformations--you can easily apply it and *KNOW* the
chain.  You don't have to generate PIs in subsequent XSLT layers.



-- 

"They that give up essential liberty to obtain a little temporary safety
  deserve neither liberty nor safety."
                 - Benjamin Franklin


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message