forrest-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johannes Schaefer <>
Subject match DOCTYPE in project-sitemap
Date Thu, 04 Nov 2004 08:04:05 GMT

Adding a new content type works fine as long as I can
match by filename (see [1]):

   <map:match pattern="**download.xml">
     <map:generate src="{project:content.xdocs}{1}download.xml" />
     <map:transform src="{project:resources.stylesheets}/download2document.xsl" />
     <map:serialize type="xml"/>

How can I do the same thing for all my XML-files that
refer to a specific DOCTYPE? Any other XML-files should 
be processed normally by forrest.
Something like:

   <map:match pattern="**.xml" && DOCTYPE="myDocType.dtd">
     <map:generate src="{project:content.xdocs}{1}.xml" />
     <map:transform src="{project:resources.stylesheets}/myDocType2document.xsl" />
     <map:serialize type="xml"/>

Only thing I can think of right now is putting them
into a special directory and do a
   <map:match pattern="myDocTypeDocs/**.xml">
but there may be a better way.



User Interface Design GmbH * Teinacher Str. 38 * D-71634 Ludwigsburg
Fon +49 (0)7141 377 000 * Fax  +49 (0)7141 377 00-99
Geschäftsstelle: User Interface Design GmbH * Lehrer-Götz-Weg 11 * D-81825 München

Buch "User Interface Tuning" von Joachim Machate & Michael Burmester

Attraktivität von interaktiven Produkten messen mit

View raw message