cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Cummings <>
Subject allowing non-dynamic downloads.
Date Tue, 20 Jan 2004 16:18:21 GMT

Hi there,

I've got a bit of a sitemap.xmap that currently looks like:

<map:match pattern="downloads">
   <map:generate src="downloads/downloads.xml"/>
   <map:transform type="xalan" src="style/xsl/add-includes.xsl"/>
   <map:serialize type="html"/>

Now from this page of downloads there will be links to some
downloads in a variety of formats (zip/tgz/pdf).  All of these
are preprocessed and I don't want to use the zip serializer to
assemble a zip file on the fly or anything like that.

How do I allow the user to have any file under this sent to
them?  I just want it to be a normal html link like
<a href="foo.tgz">Foo</a> and foo.tgz to be passed through
in the same way it does if I had it outside of cocoon.

So maybe something like:
  <map:match pattern="downloads/*">
   <map:generate src="downloads/*"/>
   <map:serialize type="????" />

But what do I serialize it as?  I don't want to have separate rules
for each of the possible file types, and they are going to be
pre-cooked and sat there in the downloads/ directory.



Dr James Cummings, Oxford Text Archive,

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

View raw message