Boost logo

Boost Users :

Subject: Re: [Boost-users] QuickBook
From: OvermindDL1 (overminddl1_at_[hidden])
Date: 2010-08-13 16:58:29


On Fri, Aug 13, 2010 at 5:05 AM, Daniel James <dnljms_at_[hidden]> wrote:
> On 13 August 2010 11:01, OvermindDL1 <overminddl1_at_[hidden]> wrote:
>>  <rewriteURI uriStartString="http://docbook.sourceforge.net/release/xsl/current/"
>> rewritePrefix="file:///usr/local/share/boost-trunk/tools/boostbook/docbook-xsl-1.75.2/"/>
>
> Can you post the contents of
> /usr/local/share/boost-trunk/tools/boostbook/docbook-xsl-1.75.2/

Hmm, might be the reason why, did not get a chance to look last night,
but let me show something, here is the $BOOST_ROOT/tools/boostbook
directory:
"""
doc download fop-1.0
setup_boostbook_new.sh test
docbook-dtd-4.2 dtd fop-1.0-bin.tar.gz
setup_boostbook.py user-config-backup.jam
docbook-xml-4.2.zip fop-0.94-bin-jdk1.4.tar.gz index.html
setup_boostbook.sh xsl
"""

When I initially ran setup_boostbook.sh it would not install because
it failed installing fop, which was because it was downloading an old
version (0.94) that did not exist on the mirror it was downloading
from, so it was downloading the 404 page as the gz file. I made a
copy of setup_boostbook.sh as setup_boostbook_new.sh and edited it to
use fop-1.0 instead, unsure why it needed to anyway considering that
fop 1.0 was pre-installed using aptitude anyway.

But yes, as you can see it did not download a docbook-xsl-1.75.2, or
any xsl actually. When I run the setup_boostbook_new.sh, it does
this:
"""
/usr/local/share/boost-trunk/tools/boostbook# ./setup_boostbook_new.sh
Downloading DocBook XSLT Stylesheets version 1.75.2...
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
100 2357k 100 2357k 0 0 383k 0 0:00:06 0:00:06 --:--:-- 792k
Expanding DocBook XSLT Stylesheets into
/usr/local/share/boost-trunk/tools/boostbook/docbook-xsl-1.75.2...gzip:
docbook-xsl-1.75.2.tar.gz: No such file or directory
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
done.
Using existing DocBook XML DTD (version 4.2).
Searching for xsltproc... /usr/bin/xsltproc.
Searching for Doxygen... /usr/bin/doxygen.
Searching for Java... /usr/bin/java.
Using existing FOP distribution (version 0.94).
Expanding FOP distribution into
/usr/local/share/boost-trunk/tools/boostbook/fop-0.94... done.
Updating Boost.Jam configuration in /root/user-config.jam... done.
Done! Execute "bjam --v2" in a documentation directory to generate
documentation with BoostBook. If you have not already, you will need
to compile Boost.Jam.
"""
As you can see, it 'says' it downloaded the XSLT stylesheet, but when
it tries to extract it, it fails saying that it does not exist. It
looks like it should download it fine.

So instead, I downloaded it manually into the boostbook directory and
ran it again, it said it was using the existing one and no errors this
time.

I then ran bjam in my test directory and it made html's just fine.
Now to figure out why it is putting:
"""
[id test]

   [id test] ]
"""
On the main index.html page...

onehtml seems to work well.

man fails:
"""
~/projects/qb_test$ bjam man
...patience...
...found 1312 targets...
...updating 2 targets...
common.mkdir man
xslt-xsltproc-dir man/test_man.manifest
No refentry elements!
...updated 2 targets...
"""

pdf also fails, but it failed because it was looking for a 0.94
directory of fop, not 1.0. When I fix that, then I get a java
exception:
"""
SEVERE: Exception
java.lang.IllegalArgumentException: factor < 0; was: -1
  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: java.lang.IllegalArgumentException: factor < 0; was: -1
  at org.apache.fop.traits.MinOptMax.mult(MinOptMax.java:251)
  at org.apache.fop.layoutmgr.inline.TextLayoutManager.processWord(TextLayoutManager.java:825)
  at org.apache.fop.layoutmgr.inline.TextLayoutManager.getNextKnuthElements(TextLayoutManager.java:710)
  at org.apache.fop.layoutmgr.inline.LineLayoutManager.collectInlineKnuthElements(LineLayoutManager.java:639)
  at org.apache.fop.layoutmgr.inline.LineLayoutManager.getNextKnuthElements(LineLayoutManager.java:579)
  at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextChildElements(BlockStackingLayoutManager.java:571)
  at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextChildElements(BlockStackingLayoutManager.java:552)
  at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:280)
  at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:123)
  at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:115)
  at org.apache.fop.layoutmgr.FlowLayoutManager.getNextChildElements(FlowLayoutManager.java:199)
  at org.apache.fop.layoutmgr.FlowLayoutManager.addChildElements(FlowLayoutManager.java:140)
  at org.apache.fop.layoutmgr.FlowLayoutManager.addChildElements(FlowLayoutManager.java:129)
  at org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:70)
  at org.apache.fop.layoutmgr.PageBreaker.getNextKnuthElements(PageBreaker.java:216)
  at org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBreaker.java:692)
  at org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.java:149)
  at org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.java:132)
  at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:337)
  at org.apache.fop.layoutmgr.PageBreaker.doLayout(PageBreaker.java:85)
  at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:107)
  at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:238)
  at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:120)
  at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:349)
  at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:177)
  at org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1101)
  at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
  at org.apache.xerces.xinclude.XIncludeHandler.endElement(Unknown Source)
  at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(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)
  ... 3 more

---------

java.lang.IllegalArgumentException: factor < 0; was: -1
  at org.apache.fop.traits.MinOptMax.mult(MinOptMax.java:251)
  at org.apache.fop.layoutmgr.inline.TextLayoutManager.processWord(TextLayoutManager.java:825)
  at org.apache.fop.layoutmgr.inline.TextLayoutManager.getNextKnuthElements(TextLayoutManager.java:710)
  at org.apache.fop.layoutmgr.inline.LineLayoutManager.collectInlineKnuthElements(LineLayoutManager.java:639)
  at org.apache.fop.layoutmgr.inline.LineLayoutManager.getNextKnuthElements(LineLayoutManager.java:579)
  at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextChildElements(BlockStackingLayoutManager.java:571)
  at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextChildElements(BlockStackingLayoutManager.java:552)
  at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:280)
  at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:123)
  at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:115)
  at org.apache.fop.layoutmgr.FlowLayoutManager.getNextChildElements(FlowLayoutManager.java:199)
  at org.apache.fop.layoutmgr.FlowLayoutManager.addChildElements(FlowLayoutManager.java:140)
  at org.apache.fop.layoutmgr.FlowLayoutManager.addChildElements(FlowLayoutManager.java:129)
  at org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:70)
  at org.apache.fop.layoutmgr.PageBreaker.getNextKnuthElements(PageBreaker.java:216)
  at org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBreaker.java:692)
  at org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.java:149)
  at org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.java:132)
  at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:337)
  at org.apache.fop.layoutmgr.PageBreaker.doLayout(PageBreaker.java:85)
  at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:107)
  at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:238)
  at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:120)
  at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:349)
  at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:177)
  at org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1101)
  at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
  at org.apache.xerces.xinclude.XIncludeHandler.endElement(Unknown Source)
  at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(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)
"""

So, much further then I was for getting quickbook working in linux,
but still not as far as I was in Windows, any further help?


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net