cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <>
Subject RE: Allowed Sitemap Constructs
Date Mon, 07 Jan 2002 13:26:25 GMT
Stefano Mazzocchi wrote:
> Also, and more important, if a matcher doesn't have a
> mount|serializer|reader, it's an error. The sitemap shouldn't even be
> loaded.

Really? I thought something like:

<match pattern="documents/*.html">
   <generate src="docs/{1}.xml"/>
<match pattern="documents/*.xml">
   <generate src="{1}.xml">
<match pattern="**">
  <transform src="stylesheet"/>
<match pattern="**.html">
  <map:serialize type="html"/>
<match pattern="**.xml">
  <map:serialize type="xml"/>

is possible! I have currently no real-world example handy, but
I think you can guess from the example the idea behind this.
I know, there are of course better solutions for the above
problem - this should be modelled completely different, but this
is not the point here.
If it is right, that a map:match must always have a serializer or
a reader than we have a big bug!


To unsubscribe, e-mail:
For additional commands, email:

View raw message