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, 30 Jul 2004 14:21:39 GMT
On Jul 29, 2004, at 10:12 AM, Clay Leeds wrote:
>> 1) Forrest currently misses some features you need that can be added  
>> in the normal Forrest processing (fo,svg->pdf)
>>
>> 2) We must decide how to make Forrest serve the original files... for  
>> example if we want for example the source of the html that is itself  
>> in html? Doing it is easy, but the issue is how to manage the URI  
>> space.
>>
>> Thoughts?
>
> Sounds good! And is pretty clear!
>
>>> [1] http://xml.apache.org/fop/examples.html
>>> [2] http://xml.apache.org/fop/dev/svg.html
>>> [3]  
>>> http://homepage.mac.com/webmaestro/xml-fop/xml-fop_files_040729.zip
>>> [4] http://marc.theaimsgroup.com/?l=forrest-dev&m=109059296008299&w=2
>>> [5]   
>>> http://marc.theaimsgroup.com/?l=forrest-dev&m=109042071306416&w=2
>> --  
>> Nicola Ken Barozzi                   nicolaken@apache.org

I thought I'd POST the '=== FOP ADDITIONS ===' sections in the current  
sitemap.xmap (NOTE: the 2nd, 3rd & 4th sections were removed when I  
replaced sitemap.xmap with a 'forrest seed' version). My hope is that  
at least some part of these sections will be useful to use in  
forrest-0.6.

In addition, I've posted the /forrest/ output after adding these items.  
Aside from the fact that these FOP Additions may not be compatible with  
the current sitemap.xmap file, it's entirely possible I added them in  
the wrong place. I attempted to add them where they appeared in the old  
xml-fop sitemap.xmap file, but the files have significant differences.

Web Maestro Clay

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

...

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

...

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


=== /forrest/ output after adding these items ===

[clay@Clays-TiBook xml-fop_new]$ forrest
Apache Forrest.  Run 'forrest -projecthelp' to list options

Buildfile:  
/Users/Shared/_WebDLs/cvs_stuff/forrest/src/core/bin/../ 
forrest.build.xml

init-props:
Loading project specific properties from  
/Users/Shared/_WebDLs/cvs_stuff/xml-fop_new/forrest.properties
Loading user specific properties from /Users/clay/forrest.properties
Loading default properties from  
/Users/Shared/_WebDLs/cvs_stuff/forrest/src/core/bin/../context/ 
default-forrest.properties
forrest.basic.jvmargs:-Dproject.home="/Users/Shared/_WebDLs/cvs_stuff/ 
xml-fop_new"  
-Dforrest.home="/Users/Shared/_WebDLs/cvs_stuff/forrest/src/core/bin/ 
.."

echo-settings:

check-skin:

fetch-skins-descriptors:

fetch-skin:

unpack-skins:

init-skins:

init:

bare-context:
____________________________________
Using skin forrest-site
____________________________________
Removed 2 dangling directories from  
/Users/Shared/_WebDLs/cvs_stuff/xml-fop_new/build/webapp
Removed 10 dangling files from  
/Users/Shared/_WebDLs/cvs_stuff/xml-fop_new/build/webapp
Created dir:  
/Users/Shared/_WebDLs/cvs_stuff/xml-fop_new/build/webapp/WEB-INF/lib

examine-proj:

check-contentdir:

ensure-content:

validation-props:

validate-xdocs:
71 file(s) have been successfully validated.
...validated xdocs

validate-skinconf:
1 file(s) have been successfully validated.
...validated skinconf

validate-sitemap:
...validated sitemap

validate-skins-stylesheets:

validate-skins:

validate-skinchoice:
...validated existence of skin 'forrest-site'

validate-stylesheets:

validate:

copy-sitemap:
Copying 1 file to  
/Users/Shared/_WebDLs/cvs_stuff/xml-fop_new/build/webapp

copy-conf:

copy-status:
Copying 1 file to  
/Users/Shared/_WebDLs/cvs_stuff/xml-fop_new/build/webapp

project-context:

prepare-context:

-prepare-classpath:

site:
Deleting directory  
/Users/Shared/_WebDLs/cvs_stuff/xml-fop_new/build/tmp/cocoon-work
Created dir:  
/Users/Shared/_WebDLs/cvs_stuff/xml-fop_new/build/tmp/cocoon-work

Static site will be generated at:
/Users/Shared/_WebDLs/cvs_stuff/xml-fop_new/build/site

Note that there are various reasons for "build failed" messages.
* Cocoon will report the status of each document:
   - in column 1: *=okay X=brokenLink ^=pageSkipped (see FAQ).
* Even if only one link is broken, you will still get "failed".
* Your site would still be generated, but some pages would be broken.
* Please check the file:
/Users/Shared/_WebDLs/cvs_stuff/xml-fop_new/build/tmp/brokenlinks.xml
for any broken links in the generated site.

Copying 36 files to  
/Users/Shared/_WebDLs/cvs_stuff/xml-fop_new/build/site
Copying 19 files to  
/Users/Shared/_WebDLs/cvs_stuff/xml-fop_new/build/site/skin/images
Copying 19 files to  
/Users/Shared/_WebDLs/cvs_stuff/xml-fop_new/build/site/skin/images
Warning:  
/Users/Shared/_WebDLs/cvs_stuff/xml-fop_new/src/documentation/skins/ 
common/images not found.
Warning:  
/Users/Shared/_WebDLs/cvs_stuff/xml-fop_new/src/documentation/skins/ 
forrest-site/images not found.
Copying 7 files to  
/Users/Shared/_WebDLs/cvs_stuff/xml-fop_new/build/site/skin
Copying 1 file to  
/Users/Shared/_WebDLs/cvs_stuff/xml-fop_new/build/site/skin
Warning:  
/Users/Shared/_WebDLs/cvs_stuff/xml-fop_new/src/documentation/skins/ 
common not found.
Warning:  
/Users/Shared/_WebDLs/cvs_stuff/xml-fop_new/src/documentation/skins/ 
forrest-site not found.
------------------------------------------------------------------------
cocoon 2.1.5
Copyright (c) 1999-2004 Apache Software Foundation. All rights reserved.
------------------------------------------------------------------------


Cannot find CatalogManager.properties
X [0]                                     index.html    BROKEN: Type  
'file-nolabel' is not defined for 'generate' at  
file:/Users/Shared/_WebDLs/cvs_stuff/xml-fop_new/build/webapp/./ 
sitemap.xmap:392:79
Total time: 0 minutes 8 seconds,  Site size: 0 Site pages: 0

BUILD FAILED
/Users/Shared/_WebDLs/cvs_stuff/forrest/src/core/targets/site.xml:57:  
Java returned: 1

Total time: 28 seconds
[clay@Clays-TiBook xml-fop_new]$


Mime
View raw message