cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cédric Damioli <cedric.dami...@anyware-tech.com>
Subject Re: Serving static XML files a la Cocoon-1
Date Mon, 22 Apr 2002 13:36:44 GMT


Peter Flynn wrote:

>Vadim writes:
>
>>>contain the <?cocoon-process type="xslt"?> Processing Instruction.
>>>
>>This instruction is not working anymore.
>>
>
>OK.
>
>>>The "documentation" does not mention this method of working. Has it
>>>been scrapped?
>>>
>>Yes.
>>
>
>Would be nice if there was a doc for Cocoon-1 users which explained this.
>
>>Read concept docs and sitemap docs on Cocoon site. Sitemap is the only
>>way to tell Cocoon what it needs to do. You should spend some time to
>>get it - once you get it, chances are, you will love it.
>>
>
>You must be kidding. Every time a user wants to put a new doc on the
>server, the administrator has to manually add an entry to the sitemap?
>This is the height of lunacy, and a surefire way to kill Cocoon stone dead.
>
That's what Vadim said... read concept & sitemap docs, and you'll love it...

>
>
>Requirement: an XML/XSL[T] server that simply recognises .xml, 
>performs the relevant conversion, and ships out the result. Cocoon-1
>did this fine: why break a perfectly good piece of software?
>
>///Peter
>
Of course you don't have to put an entry for each new doc : you simply 
need the most common C2 pipeline:

<map:match pattern="**.xml">
  <map:generate src="{1}.xml"/>
  <map:generate src="stylesheet.xsl"/>
  <map:serialize/>
</map:match>

This pipeline will process all the .xml files on your server. Does it 
match your needs?

Cédric


---------------------------------------------------------------------
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