OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Problems with DocBook to PDF on Windows (tool chain: xsltproc, Apache FOP 1.0)



Hi,
 
I know DocBook for some time, and dare to say that I understand the basic idea
(like preference of structural markup over the visual markup). However, I do not
have my personal experience with processing of DocBook documents. I need your help.
 
I am faced with conversion of the DocBook Lite book to PDF on MS Windows.
The DocBook source documents are the result of the translated
 
  „Producing Open Source Software: How to Run a Successful Free Software Project“
  by Karl Fogel (http://producingoss.com/)
 
The sources of the English original can be obtained via Subversion command
 
  svn checkout http://svn.red-bean.com/repos/producingoss/trunk/en/
 
I did try to follow the recommendation on how to set the environment.  However,
I am limited to Microsoft Windows.  I have also dowlnoaded newer versions of the tools.
I have failed to convert even the original sources to the PDF result.  It seems that
the .fo step is a bit different that that produced by the author.
 
I am going to describe briefly what tools I have.  Then I am including the text
showing the problems--errors displayed on console.
 
 
I do use cygwin tools (also for other things, here for the "make", ...).
The libxml tools were downloaded from http://www.zlatkovic.com/libxml.en.html
as binaries for Windows.  The FOP 1.0 was downloaded from
http://xmlgraphics.apache.org/fop/1.0/
 
I may have forgot to mention some details, please ask. Now for the processing:
 
Firstly, I did clean the generated files:
======================================================= 
D:POSS_DiskPtrunk>make clean
make[1]: Entering directory `/cygdrive/d/POSS_DiskP/trunk/en'
../lang-makefile:28: warning: overriding commands for target `clean'
../tools/Makefile.base-rules:81: warning: ignoring old commands for target `clean'
rm -f
rm -f ./producingoss.html ./producingoss.fo
rm -f ./producingoss.pdf ./producingoss.ps
rm -rf *.html
make[1]: Leaving directory `/cygdrive/d/POSS_DiskP/trunk/en'
======================================================= 
 
I have modified the Makefile only slightly to make only the en language.
Then I run the make...
 
======================================================= 
D:POSS_DiskPtrunk>make
make[1]: Entering directory `/cygdrive/d/POSS_DiskP/trunk/en'
../lang-makefile:28: warning: overriding commands for target `clean'
../tools/Makefile.base-rules:81: warning: ignoring old commands for target `clean'
if ! test -e "../tools/xsl"; then ../tools/bin/find-xsl.py; fi
xsltproc  --output ./producingoss.html 
          ../tools/html-stylesheet.xsl book.xml
mkdir -p .
if test -n ""; then mkdir -p ./images ; fi
if ! test -e "../tools/xsl"; then ../tools/bin/find-xsl.py; fi
xsltproc  
           --output ./ 
           ../tools/chunk-stylesheet.xsl book.xml
Writing audience.html for sect1(audience)
Writing sources.html for sect1(sources)
Writing acknowledgments.html for sect1(acknowledgments)
Writing disclaimer.html for sect1(disclaimer)
Writing preface.html for preface(preface)
Writing today.html for sect1(today)
Writing introduction.html for chapter(introduction)
Writing license-quickstart.html for sect1(license-quickstart)
Writing setting-tone.html for sect1(setting-tone)
Writing announcing.html for sect1(announcing)
Writing getting-started.html for chapter(getting-started)
Writing mailing-lists.html for sect1(mailing-lists)
Writing vc.html for sect1(vc)
Writing bug-tracker.html for sect1(bug-tracker)
Writing irc.html for sect1(irc)
Writing rss.html for sect1(rss)
Writing wikis.html for sect1(wikis)
Writing web-site.html for sect1(web-site)
Writing technical-infrastructure.html for chapter(technical-infrastructure)
Writing consensus-democracy.html for sect1(consensus-democracy)
Writing written-rules.html for sect1(written-rules)
Writing social-infrastructure.html for chapter(social-infrastructure)
Writing long-term-developers.html for sect1(long-term-developers)
Writing appear-as-many.html for sect1(appear-as-many)
Writing open-motives.html for sect1(open-motives)
Writing money-vs-love.html for sect1(money-vs-love)
Writing contracting.html for sect1(contracting)
Writing funding-non-programming.html for sect1(funding-non-programming)
Writing marketing.html for sect1(marketing)
Writing money.html for chapter(money)
Writing common-pitfalls.html for sect1(common-pitfalls)
Writing difficult-people.html for sect1(difficult-people)
Writing growth.html for sect1(growth)
Writing bug-tracker-usage.html for sect1(bug-tracker-usage)
Writing publicity.html for sect1(publicity)
Writing communications.html for chapter(communications)
Writing release-branches.html for sect1(release-branches)
Writing stabilizing-a-release.html for sect1(stabilizing-a-release)
Writing packaging.html for sect1(packaging)
Writing testing-and-releasing.html for sect1(testing-and-releasing)
Writing release-lines.html for sect1(release-lines)
Writing releases-and-daily-development.html for sect1(releases-and-daily-development)
Writing development-cycle.html for chapter(development-cycle)
Writing share-management.html for sect1(share-management)
Writing transitions.html for sect1(transitions)
Writing committers.html for sect1(committers)
Writing credit.html for sect1(credit)
Writing forks.html for sect1(forks)
Writing managing-volunteers.html for chapter(managing-volunteers)
Writing license-aspects.html for sect1(license-aspects)
Writing license-compatibility.html for sect1(license-compatibility)
Writing license-choosing.html for sect1(license-choosing)
Writing copyright-assignment.html for sect1(copyright-assignment)
Writing dual-licensing.html for sect1(dual-licensing)
Writing patents.html for sect1(patents)
Writing licensing-further-resources.html for sect1(licensing-further-resources)
Writing legal.html for chapter(legal)
Writing vc-systems.html for appendix(vc-systems)
Writing bug-trackers.html for appendix(bug-trackers)
Writing bikeshed-full.html for appendix(bikeshed-full)
Writing bug-reporting.html for appendix(bug-reporting)
Writing copyright.html for appendix(copyright)
Writing index.html for book(poss)
======================================================= 
 
... The HTML results seem to be OK. It seems to me that also
the producingoss.fo is generated -- at least somehow.
(If producingoss.html--as all in one file--has about 900 kB,
the producingoss.fo has about 1.5 MB and its content
at least reflects the content of the sources.)
 
======================================================= 
cp ../styles.css .
if test -n ""; then cp  ./images ; fi
if ! test -e "../tools/xsl"; then ../tools/bin/find-xsl.py; fi
xsltproc  --output ./producingoss.fo 
          ../tools/fo-stylesheet.xsl book.xml
Making portrait pages on USletter paper (8.5inx11in)
======================================================= 
 
It seems to me that only the next step failed -- the .fo to .pdf
 
======================================================= 
../tools/bin/run-fop.sh -fo ./producingoss.fo -ps ./producingoss.ps
(Using '../tools/bin/../fop/fop' for FOP)
31.1.2011 13:27:47 org.apache.fop.events.LoggingEventListener processEvent
WARNING: Unknown formatting object "{http://xml.apache.org/fop/extensions}outline"; encountered (a child of fo:root}. (See position 2:12485)
31.1.2011 13:27:47 org.apache.fop.events.LoggingEventListener processEvent
WARNING: Unknown formatting object "{http://xml.apache.org/fop/extensions}label";
encountered (a child of outline}. (See position 2:12496)
31.1.2011 13:27:47 org.apache.fop.events.LoggingEventListener processEvent
WARNING: Unknown formatting object "{http://xml.apache.org/fop/extensions}outline"; encountered (a child of fo:root}. (See position 2:12648)
31.1.2011 13:27:47 org.apache.fop.events.LoggingEventListener processEvent
WARNING: Unknown formatting object "{http://xml.apache.org/fop/extensions}label";
encountered (a child of outline}. (See position 2:12659)
31.1.2011 13:27:47 org.apache.fop.cli.Main startFOP
SEVERE: Exception
javax.xml.transform.TransformerException: org.apache.fop.apps.FOPException: file:/D:/POSS_DiskP/trunk/en/./producingoss.fo:2:12803: Error(2/12803): No element mapping definition found for (Namespace URI: "http://xml.apache.org/fop/extensions";, Local Name: "destination")
        at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:302)
        at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130)
        at org.apache.fop.cli.Main.startFOP(Main.java:174)
        at org.apache.fop.cli.Main.main(Main.java:205)
Caused by: javax.xml.transform.TransformerException: org.apache.fop.apps.FOPException: file:/D:/POSS_DiskP/trunk/en/./producingoss.fo:2:12803: Error(2/12803): No element mapping definition found for (Namespace URI: "http://xml.apache.org/fop/extensions";, Local Name: "destination")
        at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:501)
        at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:299)
        ... 3 more
Caused by: org.apache.fop.apps.FOPException: file:/D:/POSS_DiskP/trunk/en/./producingoss.fo:2:12803: Error(2/12803): No element mapping definition found for (Namespace URI: "http://xml.apache.org/fop/extensions";, Local Name: "destination")
        at org.apache.fop.fo.ElementMappingRegistry.findFOMaker(ElementMappingRegistry.java:144)
        at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.findFOMaker(FOTreeBuilder.java:396)
        at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:271)
        at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:171)
        at org.apache.xalan.transformer.TransformerIdentityImpl.startElement(TransformerIdentityImpl.java:1072)
        at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
        at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
        at org.apache.xerces.xinclude.XIncludeHandler.emptyElement(Unknown Source)
        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
        at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)
        ... 4 more
 
---------
 
javax.xml.transform.TransformerException: org.apache.fop.apps.FOPException: file:/D:/POSS_DiskP/trunk/en/./producingoss.fo:2:12803: Error(2/12803): No element mapping definition found for (Namespace URI: "http://xml.apache.org/fop/extensions";, Local Name: "destination")
        at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:501)
        at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:299)
        at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130)
        at org.apache.fop.cli.Main.startFOP(Main.java:174)
        at org.apache.fop.cli.Main.main(Main.java:205)
Caused by: org.apache.fop.apps.FOPException: file:/D:/POSS_DiskP/trunk/en/./producingoss.fo:2:12803: Error(2/12803): No element mapping definition found for (Namespace URI: "http://xml.apache.org/fop/extensions";, Local Name: "destination")
        at org.apache.fop.fo.ElementMappingRegistry.findFOMaker(ElementMappingRegistry.java:144)
        at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.findFOMaker(FOTreeBuilder.java:396)
        at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:271)
        at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:171)
        at org.apache.xalan.transformer.TransformerIdentityImpl.startElement(TransformerIdentityImpl.java:1072)
        at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
        at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
        at org.apache.xerces.xinclude.XIncludeHandler.emptyElement(Unknown Source)
        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
        at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)
        ... 4 more
---------
org.apache.fop.apps.FOPException: file:/D:/POSS_DiskP/trunk/en/./producingoss.fo:2:12803: Error(2/12803): No element mapping definition found for (Namespace URI: "http://xml.apache.org/fop/extensions";, Local Name: "destination")
        at org.apache.fop.fo.ElementMappingRegistry.findFOMaker(ElementMappingRegistry.java:144)
        at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.findFOMaker(FOTreeBuilder.java:396)
        at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:271)
        at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:171)
        at org.apache.xalan.transformer.TransformerIdentityImpl.startElement(TransformerIdentityImpl.java:1072)
        at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
        at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
        at org.apache.xerces.xinclude.XIncludeHandler.emptyElement(Unknown Source)
        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
        at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)
        at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:299)
        at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130)
        at org.apache.fop.cli.Main.startFOP(Main.java:174)
        at org.apache.fop.cli.Main.main(Main.java:205)
make[1]: *** [producingoss.ps] Error 1
make[1]: Leaving directory `/cygdrive/d/POSS_DiskP/trunk/en'
 ======================================================= 

I have observed one more detail.  When I get the original producingoss.fo generated
by the author, it is converted by my toolchain correctly.  Because of this I guess
that the problem could be with the FOP version (the author included the example
of instalation from fop-0.20.4-bin.tar.gz in the doc).
 
Can you point me in the right direction?
 
Thanks,
    Petr


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]