Re: [docbook-apps] Exception with 'double.sided' set to 1 for PDFoutput

From
spr <>
Date
2007-10-03T19:35:05+00:00
ID
Thread
Re: [docbook-apps] Exception with 'double.sided' set to 1 for PDFoutput
i was able to generate the PDF with souble.sided set to "0", so the path etc
are fine.

my command line is:
# ./fop-0.94/fop -d -xml ./input/test/index.xml -xsl
./custom/double-sided.xsl ./output/test/test.pdf

After setting fop1.extensions to "1" (as suggested by MJ), the exception is
gone. I am, however, not sure why?


Ron Catterall wrote:
> 
> 
> Re: [docbook-apps] Exception with 'double.sided'
> set to 1
> Works OK for me when I reset the route to
> ...../docbook/5.0/docbook-xsl-ns-1.73.2/fo/ docbook.xsl and use
> Saxon 6.5.5 and XEP 4.9 and also whatever Apache FOP is built into
> Oxygen 8.2 - and without setting fop1.extensions = 1, so setting
> fop1.extensions is not the problem - unless Oxygen build it in some
> other way. 
> 
> my test file starts: 
> &lt;?xml
> version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?&gt; 
> &lt;!DOCTYPE
> article&gt; 
> &lt;article xml:id=&quot;LL&quot;
> xmlns=&quot;http://docbook.org/ns/docbook&quot; version=&quot;5.0&quot;
> xml:lang=&quot;EN&quot;&gt; 
> &nbsp;
> &lt;info&gt;&lt;title&gt;Title of article&lt;/title&gt;&lt;/info&gt; 
> &nbsp; &lt;section xml:id=&quot;LL_first&quot; xml:lang=&quot;EN&quot;&gt; 
> &nbsp;&nbsp;&nbsp; &lt;info&gt;&lt;title&gt;Title of first
> section;&lt;/title&gt;&lt;/info&gt; 
> &nbsp;... 
> my stylesheet is: 
> &lt;?xml
> version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt; 
> &lt;xsl:stylesheet 
> &nbsp;
> version&nbsp;&nbsp;&nbsp;&nbsp; = &quot;1.0&quot; 
> &nbsp; xmlns:d&nbsp;&nbsp;&nbsp;&nbsp; =
> &quot;http://docbook.org/ns/docbook&quot; 
> &nbsp; xmlns:xsl&nbsp;&nbsp; =
> &quot;http://www.w3.org/1999/XSL/Transform&quot; 
> &nbsp; xmlns:fo&nbsp;&nbsp;&nbsp; =
> &quot;http://www.w3.org/1999/XSL/Format&quot; 
> &nbsp; xmlns:l&nbsp;&nbsp;&nbsp;&nbsp; =
> &quot;http://docbook.sourceforge.net/xmlns/l10n/1.0&quot;&gt; 
> 
> &nbsp;&nbsp;
> &lt;xsl:import 
> &nbsp;&nbsp;&nbsp;&nbsp;
> href&nbsp;&nbsp;&nbsp;
> =&quot;/Applications/Utilities/oxygen/8.2/oxygen/frameworks/docbook/5.0/docbook-xsl-ns-1.73.2/fo/docbook.xsl&quot;/&gt; 
> 
> &nbsp;
> &lt;xsl:param
> name=&quot;double.sided&quot; select =&quot;1&quot; /&gt; 
> 
> &lt;/xsl:stylesheet&gt; 
> 
> my Java is 1.4.2 -Xmx1000m 
> 
> Is your route to docbook.xsl correct?&nbsp; I suppose it must be
> if OK for double-sided set to 0. 
> 
> Ron 
> 
> Any hints? 
> 
> I trimmed the customization to minimum: 
> 
> &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt; 
> &lt;xsl:stylesheet 
> &nbsp; version&nbsp;&nbsp;&nbsp;&nbsp; = &quot;1.0&quot; 
> &nbsp; xmlns:d&nbsp;&nbsp;&nbsp;&nbsp; =
> &quot;http://docbook.org/ns/docbook&quot; 
> &nbsp; xmlns:xsl&nbsp;&nbsp; =
> &quot;http://www.w3.org/1999/XSL/Transform&quot; 
> &nbsp; xmlns:fo&nbsp;&nbsp;&nbsp; =
> &quot;http://www.w3.org/1999/XSL/Format&quot; 
> &nbsp; xmlns:l&nbsp;&nbsp;&nbsp;&nbsp; =
> &quot;http://docbook.sourceforge.net/xmlns/l10n/1.0&quot;&gt; 
> 
> &nbsp; &lt;xsl:import 
> &nbsp;&nbsp;&nbsp; href&nbsp;&nbsp;&nbsp; =
> &quot;../docbook-xsl-ns-1.73.2/fo/docbook.xsl&quot; /&gt; 
> 
> &nbsp; &lt;xsl:param name=&quot;double.sided&quot; select =&quot;1&quot;
> /&gt; 
> 
> &lt;/xsl:stylesheet&gt; 
> 
> But still the problem persists :( 
> 
> ~spr 
> 
> 
> spr wrote: 
> &gt; 
> &gt; When trying to generate PDF with &lt;xsl:param
> name=&quot;double.sided&quot; select=&quot;1&quot; 
> &gt; /&gt; generated exception. 
> &gt; The same works with &lt;xsl:param name=&quot;double.sided&quot;
> select=&quot;0&quot; /&gt; 
> &gt; 
> &gt; FOP version : 0.94 
> &gt; DocBook XSL : 1.73.2 
> &gt; 
> &gt; 
> 
> -- 
> View this message in context:
> http://www.nabble.com/Exception-with-%27double.sided%27-set-to-1-for-PDF-output-tf4547745.html#a13024546 
> Sent from the docbook apps mailing list archive at Nabble.com. 
> 
> 
> --------------------------------------------------------------------- 
> To unsubscribe, e-mail:
>  
> For additional commands, e-mail:
>  
> 
> 
> -- 
> 
> Ron Catterall, Phd, DSc
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> email:  
> Prolongacion de Hidalgo 140&nbsp;&nbsp;&nbsp;&nbsp;
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> http://catterall.net/ 
> San Felipe del Agua&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tel:
> +52 951 520 1821 
> Oaxaca&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 68020&nbsp;
> Mexico&nbsp;
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fax:
> +1 530 348 8309 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Exception-with-%27double.sided%27-set-to-1-for-PDF-output-tf4547745.html#a13026290
Sent from the docbook apps mailing list archive at Nabble.com.