Thanks for the detail. If you are using the docbook5 stylesheets, then
your document will work best when it is a DocBook 5 document, which means
it must be in the DocBook 5 namespace.
Change:
<book>
to
<book xmlns="http://docbook.org/ns/docbook" version="5.0">
Bob Stayton
Sagehill Enterprises
DocBook Consulting
[EMAIL PROTECTED]
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "Bob Stayton" <[EMAIL PROTECTED]>
Cc: "DocBook Apps" <[email protected]>; <[EMAIL PROTECTED]>
Sent: Friday, March 23, 2007 12:07 AM
Subject: Re: [docbook-apps] Re: [docbook] Processing Instructions for fo
generation
Hi,
[I'm moving this over to the docbook-apps mailing list where such issues
are discussed]
Sorry for using the list dockbook instead of docbook-apps.
I just tried it with docbook5-xsl-1.72.0 and it works. Can you provide
a
short example and describe your toolchain?
Actually my toolchain is not mature, I just use docbook to develop a
"prototype"
of a report. I plan to propose it to my company for document generation,
and I
want to show them an example of report.
I have used the JDK 1.4.2_13 for these experiments.
I produce a PDF document using the fop (0.93) command line. I have just
modified
the command line to set http.proxyHost and http.proxyPort java options (I
plan
to use Catalog to avoid this, but it is not my main problem !). My
document is
generated, but there is no trace of color in my table cells.
For investigation, I have generated the .fo separtely with xalan (using
in the
CP xalan27 provided with docbook xsl distribution) : there is no trace of
color
in my .fo.
I have also try to use <?dbfo table-width="50%" ?> but the result is the
same :
no impact on my final document.
I think that PI are ignored, but I don't know why...
Here is my presentation layer, based on the docbook.xsl stylsheet
provided in
dockbook5-xsl1.72.0 for fo generation.
[BEGIN of presentation layer]
<?xml version='1.0'?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
version="1.0">
<xsl:import href="../docbook5-xsl-1.72.0/fo/docbook.xsl"/>
<!-- fop extensions -->
<xsl:param name="fop1.extensions" select="1"></xsl:param>
<!-- general settings about paper -->
<xsl:param name="paper.type" select="'A4'"/>
</xsl:stylesheet>
[END]
[BEGIN of docbook document]
<?xml version='1.0'?>
<book>
<bookinfo>
<title>XXX REPORT</title>
<author>
<firstname>User</firstname>
<affiliation>
<address><email>[EMAIL PROTECTED]</email></address>
</affiliation>
</author>
<pubdate>2007/03/21</pubdate>
<abstract>
<para>XXX report of YYY.</para>
</abstract>
</bookinfo>
<chapter>
<title>ETC OEB-01</title>
<para>
This paragraph is related to OEB-01.
</para>
<sect1>
<title>MENU ZZZ - YYY</title>
<table>
<?dbfo table-width="50%" ?>
<title>Procedure lines of ZZZ</title>
<tgroup cols="5">
<colspec colnum="1" colname="C1" colwidth="1*"/>
<colspec colnum="2" colname="C2" colwidth="1*"/>
<colspec colnum="3" colname="C3" colwidth="4*"/>
<colspec colnum="4" colname="C4" colwidth="1*"/>
<colspec colnum="5" colname="C5" colwidth="4*"/>
<thead>
<row>
<entry>Custo</entry>
<entry>Color</entry>
<entry>Action not done</entry>
<entry>Color</entry>
<entry>Action done</entry>
</row>
</thead>
<tbody>
<row>
<entry>M<?dbfo bgcolor="#00FF00" ?></entry>
<entry>A<?dbfo bgcolor="#00FF00" ?></entry>
<entry>ALL PHASE : DEFERED PROCEDURE UPDATED<?dbfo bgcolor="#00FF00"
?></entry>
<entry>A<?dbfo bgcolor="#00FF00" ?></entry>
<entry>ALL PHASE : DEFERED PROCEDURE UPDATED<?dbfo bgcolor="#00FF00"
?></entry>
<?dbfo bgcolor="#00FF00" ?></row>
</tbody>
</tgroup>
</table>
</sect1>
</chapter>
</book>
[END]
Thanks in advance for your help.
Xavier
Bob Stayton
Sagehill Enterprises
DocBook Consulting
[EMAIL PROTECTED]
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, March 22, 2007 5:01 AM
Subject: [docbook] [DocBook][PI] Processing Instructions for fo
generation
Hi,
I try to use <?dbfo bgcolor="#00FF00" ?> (in a docbook document) for
table
entries, but without success.
Is there any parameters to set in my presentation layer ?
My presentation layer is based on stylesheets of "docbook5-xsl-1.72.0".
Thanks in advance.
Xavier
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]