forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clay Leeds <cle...@medata.com>
Subject Re: xml-fop Build Failed
Date Fri, 29 Oct 2004 20:18:23 GMT
I'm looking for a bit of help getting xml-fop to output some custom  
content types (they were in the old xml-fop/../../sitemap.xmap file).  
Every item which matches the following pattern in this file[1] are what  
I think I need to add (stuff in the FOP Additions sections):

     </map:serializers>
       <!-- .. -->
       <map:serializer name="svg2png" mime-type="image/png"  
src="org.apache.cocoon.serialization.SVGSerializer"/>
       <!-- ========================== FOP Additions  
========================== -->
       <map:serializer name="svg2pdf" mime-type="application/pdf"  
src="org.apache.cocoon.serialization.SVGSerializer">
         <parameter name="transcoder"  
value="org.apache.fop.svg.PDFTranscoder"/>
       </map:serializer>
       <!-- ======================= End FOP Additions  
======================== -->
     </map:serializers>


       <!-- ========================== FOP Additions  
========================== -->
       <map:match pattern="body-compliance.xml">
         <map:generate type="file-nolabel"  
src="content/xdocs/compliance.xml"/>
         <map:transform src="resources/stylesheets/compliance2html.xsl"/>
         <map:serialize type="xml"/>
       </map:match>
       <!-- ======================== End FOP Additions  
======================== -->

and...

     <map:pipeline internal-only="false">
       <!-- ========================== FOP Additions  
========================== -->
       <map:match pattern="*/svg/*.svg">
         <map:read src="content/xdocs/{1}/svg/{2}.svg"  
mime-type="image/svg"/>
       </map:match>
       <map:match pattern="*/svg/*.png">
         <map:generate src="content/xdocs/{1}/svg/{2}.svg"/>
         <map:serialize type="svg2png"/>
       </map:match>
       <map:match pattern="*/svg/*.pdf">
         <map:generate src="content/xdocs/{1}/svg/{2}.svg"/>
         <map:serialize type="svg2pdf"/>
       </map:match>
       <map:match pattern="fo/*.fo">
         <map:read src="content/xdocs/fo/{1}.fo" mime-type="text/xml"/>
       </map:match>
       <map:match pattern="fo/*.ent">
         <map:read src="content/xdocs/fo/{1}.ent"  
mime-type="text/plain"/>
       </map:match>
       <map:match pattern="fo/*.fo.pdf">
         <map:generate src="content/xdocs/fo/{1}.fo"/>
         <map:serialize type="fo2pdf"/>
       </map:match>
       <map:match pattern="**/fo/*.fo">
         <map:read src="content/xdocs/{1}/fo/{2}.fo"  
mime-type="text/xml"/>
       </map:match>
       <map:match pattern="**/fo/*.fo.pdf">
         <map:generate src="content/xdocs/{1}/fo/{2}.fo"/>
         <map:serialize type="fo2pdf"/>
       </map:match>
       <map:match pattern="compliance.pdf">
         <map:generate type="file-nolabel"  
src="content/xdocs/compliance.xml"/>
         <map:transform src="resources/stylesheets/compliance2fo.xsl"  
label="content"/>
         <map:serialize type="fo2pdf"/>
       </map:match>
       <!-- ======================= End FOP Additions  
======================== -->

         <!-- ========================= FOP Additions  
========================== -->
         <map:match pattern="**/faq.pdf">
           <map:generate type="file-nolabel"  
src="content/xdocs/{1}/faq.xml"/>
           <map:transform src="library/xslt/faq2document.xsl"  
label="content"/>
           <map:transform  
src="skins/forrest-site/xslt/fo/document2fo.xsl"/>
           <map:serialize type="fo2pdf"/>
         </map:match>
         <!-- ======================= End FOP Additions  
======================== -->

NOTE: Some of these may no longer be necessary for me to add (they  
might have been integrated into Forrest's default sitemap.xmap). For  
others, the Forrest Team may want to *make* them part of the default  
sitemap.xmap (svg => pdf)?

[1]
http://cvs.apache.org/viewcvs.cgi/xml-fop/src/documentation/ 
sitemap.xmap?rev=1.17&view=markup

Web Maestro Clay
-- 
Clay Leeds - <cleeds@medata.com>
Webmaster/Developer - Medata, Inc. - <http://www.medata.com/>
PGP Public Key: <https://mail.medata.com/pgp/cleeds.asc>


Mime
View raw message