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

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

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


Subject: Re: [docbook-apps] 'hyphenate.verbatim' parameter and FOP


Hi,

Just updating this thread with the answer you received on the Oxygen Users List:

http://www.oxygenxml.com/pipermail/oxygen-user/2012-January/003976.html

Regards,
Radu

Radu Coravu
<oXygen/>  XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

On 1/23/2012 11:07 AM, Tony Graham wrote:
Using oXygen 13.2's DocBook FO stylesheets and FOP and the
<programlisting>  in the document below (hopefully the longer lines weren't
wrapped by my mailer), when the 'hyphenate.verbatim' parameter is set to
'1', the transformation fails with the following message:

------------------------------------
System ID: Untitled1.xml
Scenario: Docbook PDF duplicate
XML file: Untitled1.xml
XSL file: C:\Program Files\Oxygen XML Editor
13\frameworks\docbook\xsl\fo\docbook_custom.xsl
Engine name: Apache FOP
Severity: error
Description: The process 'Apache FOP' ended with code: 1.
The error was:
ERROR - Exception
java.lang.IllegalArgumentException: factor<  0; was: -1
	at org.apache.fop.cli.InputHandlerFOP.transformTo(Unknown Source)
	at org.apache.fop.cli.InputHandlerFOP.renderTo(Unknown Source)
	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)
------------------------------------------------

This appears to be fixed in FOP post-1.0:

https://issues.apache.org/bugzilla/show_bug.cgi?id=49837

but installing a development version of FOP isn't really an option.

Has anyone else seen this?  Seen this and found a solution?

Regards,


Tony Graham                                   tgraham@mentea.net
Consultant                                 http://www.mentea.net
Mentea       13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
     XML, XSL-FO and XSLT consulting, training and programming


<article xmlns="http://docbook.org/ns/docbook";
     xmlns:xlink="http://www.w3.org/1999/xlink"; version="5.0">
     <title><tag>code</tag>  Breaking</title>
     <programlisting>      There was movement at the station, for the word
had passed around
      That the colt from old Regret had got away,
      And had joined the wild bush horses -- he was worth a thousand pound,
      So all the cracks had gathered to the fray.
      All the tried and noted riders from the stations near and far
      Had mustered at the homestead overnight,
      For the bushmen love hard riding where the wild bush horses are,
      And the stock-horse snuffs the battle with delight.
</programlisting>
</article>


---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org



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