forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Juan Jose Pablos <che...@che-che.com>
Subject About RAW content
Date Fri, 12 Nov 2004 21:29:23 GMT
Hi,
Looking at this :

<!-- ======================== FOP Additions ======================== -->
<map:match pattern="*/svg/*.svg">
   <map:read src="{project:content.xdocs}{1}/svg/{2}.svg" 
mime-type="image/svg"/>
</map:match>

It seems that people are having problems with the fact that the raw 
content is in another directory.


I have a patch to resolve this and put xdocs and content in the same 
directory:

<!-- ============================================================ -->
<!-- OUTPUT FORMATS                                               -->
<!--                  Serves content directly to the user         -->
<!-- +==========================================================+ -->
<!-- http://forrest.apache.org/docs/sitemap-ref.html#output_pipelines -->
<map:match type="regexp" pattern="^.+$">
   <map:select type="exists">
-   <map:when test="{project:content}/{0}">
+   <map:when test="{project:content.xdocs}/{0}">
   <map:mount uri-prefix="" src="raw.xmap" check-reload="yes" />
</map:when>


That should be enought (plus the new references on the raw.xamp)


Should I apply this one?

Cheers,
cheche



Mime
View raw message