« Return to Thread: Exception with 'double.sided' set to 1 for PDF output

Re: Exception with 'double.sided' set to 1 for PDF output

by spr :: Rate this Message:

Reply to Author | View in Thread

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:
<?xml
version="1.0" encoding="UTF-8" ?>
<!DOCTYPE
article>
<article xml:id="LL" xmlns="http://docbook.org/ns/docbook" version="5.0" xml:lang="EN">
 
<info><title>Title of article</title></info>
  <section xml:id="LL_first" xml:lang="EN">
    <info><title>Title of first
section;</title></info>
 ...
my stylesheet is:
<?xml
version="1.0" encoding="utf-8"?>
<xsl:stylesheet
 
version     = "1.0"
  xmlns:d     =
"http://docbook.org/ns/docbook" 
  xmlns:xsl   =
"http://www.w3.org/1999/XSL/Transform" 
  xmlns:fo    =
"http://www.w3.org/1999/XSL/Format" 
  xmlns:l     =
"http://docbook.sourceforge.net/xmlns/l10n/1.0"> 

  
<xsl:import
    
href    ="/Applications/Utilities/oxygen/8.2/oxygen/frameworks/docbook/5.0/docbook-xsl-ns-1.73.2/fo/docbook.xsl"/>

 
<xsl:param
name="double.sided" select ="1" />

</xsl:stylesheet>

my Java is 1.4.2 -Xmx1000m

Is your route to docbook.xsl correct?  I suppose it must be
if OK for double-sided set to 0.

Ron

Any hints?

I trimmed the customization to minimum:

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet
  version     = "1.0"
  xmlns:d     =
"http://docbook.org/ns/docbook" 
  xmlns:xsl   =
"http://www.w3.org/1999/XSL/Transform" 
  xmlns:fo    =
"http://www.w3.org/1999/XSL/Format" 
  xmlns:l     =
"http://docbook.sourceforge.net/xmlns/l10n/1.0"> 

  <xsl:import
    href    =
"../docbook-xsl-ns-1.73.2/fo/docbook.xsl" />

  <xsl:param name="double.sided" select ="1"
/>

</xsl:stylesheet>

But still the problem persists :(

~spr


spr wrote:
>
> When trying to generate PDF with <xsl:param
name="double.sided" select="1"
> /> generated exception.
> The same works with <xsl:param name="double.sided"
select="0" />
>
> FOP version : 0.94
> DocBook XSL : 1.73.2
>
>

--
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:
docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail:
docbook-apps-help@lists.oasis-open.org


--

Ron Catterall, Phd, DSc
       
       
       
email: ron@catterall.net
Prolongacion de Hidalgo 140    
       
       
       
http://catterall.net/ 
San Felipe del Agua       
       
       
       
        tel:
+52 951 520 1821
Oaxaca      68020 
Mexico 
       
       
        fax:
+1 530 348 8309



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

 « Return to Thread: Exception with 'double.sided' set to 1 for PDF output