example: <map:match pattern="*.pdf"> <map:act type="resource-exists"> <map:parameter name="url" value="{1}.docbook"/> <map:generate src="{../1}.docbook"/> <map:transform src="docbook/fo/docbook.xsl"/> <map:serialize type="pdf"/> </map:act> <map:act type="resource-exists"> <map:parameter name="url" value="{1}.html"/> <map:generate type="html" src="{../1}.html"/> <map:transform src="html2fo.xsl"/> <map:serialize type="pdf"/> </map:act> </map:match>
So or similar it can work ;-) Joerg Peter Bradburn wrote: > Is it possible to configure the sitemap, so that a document (eg. Pdf) > can be created from one of a variety of formats (HTML, Docbook XML), > which are both available in a directory. I need the sitemap to use > the first available format to use as a document to generate into SAX > events. The sitemap would need to make the choice. I guess what I am > asking is can you wildcard file formats, as well as file names? > > Your help would be appreciated Peter Bradburn --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>