forrest-user mailing list archives

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

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

  <map:pipeline>
   <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"/>
   </map:match>
  </map:pipeline>

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:pipeline>
   <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"/>
   </map:match>
  </map:pipeline>

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.

Thanks!
Johannes


[1] 
http://forrest.apache.org/docs/your-project.html#adding_new_content_type)

-- 
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
www.uidesign.de

Buch "User Interface Tuning" von Joachim Machate & Michael Burmester 
www.user-interface-tuning.de

Attraktivität von interaktiven Produkten messen mit 
www.attrakdiff.de


Mime
View raw message