forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Crossley <cross...@apache.org>
Subject Re: xml-fop Build Failed
Date Sat, 30 Oct 2004 07:10:46 GMT
Clay Leeds wrote:
> 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>

Why is this closing tag here?

>        <!-- .. -->
>        <map:serializer name="svg2png" mime-type="image/png"  
> src="org.apache.cocoon.serialization.SVGSerializer"/>

Don't need this svg2png here because it is in the core
sitemaps.

>        <!-- ========================== 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>

The svg2pdf serializer does not seem to be in the core
sitemaps, so you need to declare it in yours.

>        <!-- ========================== 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  
> ======================== -->

That match is not correct anymore. Please follow the
documentation your-project.html "Adding new content type".

> 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  
> ======================== -->

All of those seem to be needed in your project sitemap.

>          <!-- ========================= 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  
> ======================== -->

I don't understand the purpose of that one. Leave it out
and see if the core sitemaps handle the faq.pdf

> 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)?

The only one that i can see that might need to go to the
core is the svg2pdf serializer. For now, just declare it
in your project sitemap.

--David

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


Mime
View raw message