cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <cziege...@s-und-n.de>
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>
<match pattern="documents/*.xml">
   <generate src="{1}.xml">
</match>
<match pattern="**">
  <transform src="stylesheet"/>
</match>
<match pattern="**.html">
  <map:serialize type="html"/>
</match>
<match pattern="**.xml">
  <map:serialize type="xml"/>
</match>

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!

Carsten



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message