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 22:48:33 GMT
NOTE: This message is a bit of an update on the status of the xml-fop  
BUILD.

On Oct 28, 2004, at 8:58 AM, Clay Leeds wrote:
> I do have a few problems I need to resolve:
>
> CRITICAL:
> - compliance.html/.xml - *no* content (should look like[5])
> - design/alt.design/xml-parsing.html - *no* content (should look  
> like[6])
> - all links in *navigation* from  
> design/alt.design/properties/introduction.html
>   display *no* content (click[7] and try links in site navigation menu)

These issues have not yet been resolved.

> MODERATE:
> - the tab corner images do not render

This appears to have been resolved.

> MINOR:
> - I'd like to figure out how to transform svg=>PNG+PDF on the fly. For  
> now,
>   I will be generating all PNG & PDF files and placing them in their
>   respective resources/* or content/* directories.

This issue appears to have been resolved due to my attempts to "Upgrade  
to 0.6" and update the sitemap.xmap to 0.6.

> - I think the breadcrumb should display below the tabs (although that  
> may be skin-related)

I think this is skin-related... If I want to move it, I'll have to  
choose another skin.

...more below...

On Oct 29, 2004, at 1:18 PM, Clay Leeds wrote:
> 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

Keeping in mind the possibility that some sitemap.xmap pipelines &  
transformation may not be necessary (if they are either already  
integrated into Forrest, or could be integrated into Forrest--see NOTE:  
above), I removed all items from the sitemap.xmap file which were  
outside the 'FOP Additions' sections (being careful to retain the  
integrity of all parent elements to the 'FOP Additions' sections).

The sitemap.xmap file I came up with is pasted at the bottom of this  
message. Unfortunately, I ran /forrest/ and got a BUILD FAILED (I'm not  
too concerned with this, as if I simply delete the sitemap.xmap file, I  
get a BUILD SUCCESSFUL--albeit with CRITICAL issues--no content in the  
compliance.html, xml-parsing.html, etc.). The BUILD FAILED I get  
appears to be because of one file:

====
X [0]                                     dev/faq.pdf   BROKEN:  
/Users/Shared/_WebDLs/_repos/xml-fop/src/documentation/library/xslt/ 
faq2document.xsl (No such file or directory)
====

I was receiving the following error with my first pass. I played with  
sitemap.xmap a bit, and removed all @type="file-nolabel" from the  
remaining <map:generate../> elements (@ pattern="body-compliance.xml",  
@pattern="compliance.pdf", @pattern="**/faq.pdf"). This resolved the  
problem (although I'm still having a problem with my faq.pdf file).

====
* [1/0]     [0/0]     1.988s 0b      linkmap.html
org.apache.avalon.framework.configuration.ConfigurationException: Type  
'file-nolabel' does not exist for 'map:generate' at  
file:/Users/Shared/_WebDLs/_repos/xml-fop/src/documentation/ 
sitemap.xmap:36:79
         at  
org.apache.cocoon.components.treeprocessor.DefaultTreeBuilder.getTypeFor 
Statement(Unknown Source)
         at  
org.apache.cocoon.components.treeprocessor.sitemap.GenerateNodeBuilder.b 
uildNode(Unknown Source)
         at  
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeB 
uilder.buildChildNodesList(Unknown Source)
         at  
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeB 
uilder.buildChildNodes(Unknown Source)
         at  
org.apache.cocoon.components.treeprocessor.sitemap.MatchNodeBuilder.buil 
dNode(Unknown Source)
         at  
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNodeBuilder.b 
uildNode(Unknown Source)
         at  
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNodeBuilder. 
buildNode(Unknown Source)
         at  
org.apache.cocoon.components.treeprocessor.sitemap.SitemapNodeBuilder.bu 
ildNode(Unknown Source)
         at  
org.apache.cocoon.components.treeprocessor.DefaultTreeBuilder.createTree 
(Unknown Source)
         at  
org.apache.cocoon.components.treeprocessor.DefaultTreeBuilder.build(Unkn 
own Source)
         at  
org.apache.cocoon.components.treeprocessor.TreeProcessor.buildConcretePr 
ocessor(Unknown Source)
         at  
org.apache.cocoon.components.treeprocessor.TreeProcessor.setupConcretePr 
ocessor(Unknown Source)
         at  
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(Unknown 
  Source)
         at  
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(Unkn 
own Source)
         at  
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode. 
invokeNodes(Unknown Source)
         at  
org.apache.cocoon.components.treeprocessor.sitemap.SelectNode.invoke(Unk 
nown Source)
         at  
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode. 
invokeNodes(Unknown Source)
         at  
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(U 
nknown Source)
         at  
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode. 
invokeNodes(Unknown Source)
         at  
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke( 
Unknown Source)
         at  
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process 
(Unknown Source)
         at  
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process 
(Unknown Source)
         at  
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(Unknown 
  Source)
         at org.apache.cocoon.Cocoon.process(Unknown Source)
         at org.apache.cocoon.bean.CocoonWrapper.getPage(Unknown Source)
         at org.apache.cocoon.bean.CocoonBean.processTarget(Unknown  
Source)
         at org.apache.cocoon.bean.CocoonBean.process(Unknown Source)
         at org.apache.cocoon.Main.main(Unknown Source)
X [0]                                     linkmap.html  BROKEN: URI not  
found: Type 'file-nolabel' does not exist for 'map:generate' at  
file:/Users/Shared/_WebDLs/_repos/xml-fop/src/documentation/ 
sitemap.xmap:36:79
Total time: 0 minutes 15 seconds,  Site size: 0 Site pages: 1

BUILD FAILED
/Users/Shared/_WebDLs/_repos/forrest/forrestcore/src/core/targets/ 
site.xml:43: Java returned: 1

Total time: 40 seconds
[clay@Clay-Leeds-Computer xml-fop]$
====

I also had a problem with svg2png generator, so I commented it out:

====
       <!--
       <map:match pattern="*/svg/*.png">
         <map:generate src="content/xdocs/{1}/svg/{2}.svg"/>
         <map:serialize type="svg2png"/>
       </map:match>
       -->
====

Here's what I believe will be the basis for the sitemap.xmap for  
xml-fop:

====
<?xml version="1.0"?>
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
   <!-- =========================== Components  
================================ -->
   <map:components>
     <map:serializers default="html">
       <!-- ========================== 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>
   </map:components>
   <!-- =========================== Views  
=================================== -->
   <map:views>
     <map:view name="content" from-label="content">
       <map:serialize type="xml"/>
     </map:view>
     <map:view name="pretty-content" from-label="content">
       <map:transform src="library/xslt/simple-xml2html.xsl"/>
       <map:serialize type="html"/>
     </map:view>
     <map:view name="links" from-position="last">
       <map:transform src="library/xslt/filterlinks.xsl"/>
       <map:serialize type="links"/>
     </map:view>
   </map:views>
   <!-- =========================== Pipelines  
================================= -->
   <map:pipelines>
     <!-- Utility Pipeline that creates the grammer for the Chaperon  
Wiki -->
     <!-- Pipeline that manages the internal URI space
        For the external URI space manager, see the next pipeline.
        Set it to internal-only="true" in production environment -->
     <map:pipeline internal-only="false">
       <!-- ========================== FOP Additions  
========================== -->
       <map:match pattern="body-compliance.xml">
         <map:generate src="content/xdocs/compliance.xml"/>
         <map:transform src="resources/stylesheets/compliance2html.xsl"/>
         <map:serialize type="xml"/>
       </map:match>
       <!-- ======================== End FOP Additions  
======================== -->
     </map:pipeline>
     <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 src="content/xdocs/compliance.xml"/>
         <map:transform src="resources/stylesheets/compliance2fo.xsl"  
label="content"/>
         <map:serialize type="fo2pdf"/>
       </map:match>
       <!-- ======================= End FOP Additions  
======================== -->
       <map:match pattern="**">
         <!-- ========================= FOP Additions  
========================== -->
         <map:match pattern="**/faq.pdf">
           <map:generate 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  
======================== -->
       </map:match>
     </map:pipeline>
   </map:pipelines>
</map:sitemap>
====

As mentioned above, after running /forrest/ I am still getting one  
error:

====
X [0]                                     dev/faq.pdf   BROKEN:  
/Users/Shared/_WebDLs/_repos/xml-fop/src/documentation/library/xslt/ 
faq2document.xsl (No such file or directory)
====


In addition, I'm still missing all content in
  xml-fop/build/site/compliance.html
  xml-fop/build/site/design/alt.design/xml-parsing.html

My goal for these pages is to get something(!) between these two items:

<!--+
     |start content
     +-->

<!--+
     |end content
     +-->

:-)

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