You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Rick Tessner <ri...@dingle.myra.com> on 2001/01/17 23:00:46 UTC

Re: FOP and DocBook

On Wed, 17 Jan 2001 12:21:13 +0100, "Aidan Mark Humphreys" wrote:

>Has anyone experience of using FOP to render DocBook conformant documents to
>PDF using Norman's stylesheets?

Yup, but there's a few things to work around.  The explicit definition
of column widths is one.  If you modify the XML as adding a
few <colspec> elements:

>     <informaltable frame="all">
>       <tgroup cols="4">
          <colspec colwidth="4cm"/>
	  <colspec colwidth="3cm"/>
	  <colspec colwidth="5cm"/>
	  <colspec colwidth="5cm"/>      
>         <thead>
>           <row>
>             <entry>Architecture</entry>

That'll get you the columns.  The border is a different issue.  I'm
using 1.24 (haven't gone to 1.26 or 1.28 yet ... some issues there).

I grep'd thru the docbook.xsl (both the fo/ and common/ directories)
and "frame" was nowhere to be found.  So, if you want the border
you'll need to change the XSL yourself to always frame or
implement the frame attribute and send the patch back to Norman.

The last issue with "list-item-label" is the one that prevented
me from using 1.26.  Haven't had the time to really look at that
one yet ...

Just remember that the DocBook stuff was written for SGML first
and that worked wonderfully.  The 1.28 is experimental and has
a few gliches here and there.

You might try 1.24 instead.  It's not quite so experimental.  ;)

-- 
Rick Tessner	rick@myra.com
MYRA Systems Corp. Fone: (250) 381 1335 x125  Phax: (250) 381 1304
                   Cell: (250) 885 9452

"Hmmm.  They have the Internet on computers now!"



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: FOP and DocBook

Posted by Norman Walsh <nd...@nwalsh.com>.
/ Rick Tessner <ri...@dingle.myra.com> was heard to say:
| That'll get you the columns.  The border is a different issue.  I'm
| using 1.24 (haven't gone to 1.26 or 1.28 yet ... some issues there).

Issues?

| I grep'd thru the docbook.xsl (both the fo/ and common/ directories)
| and "frame" was nowhere to be found.  So, if you want the border
| you'll need to change the XSL yourself to always frame or
| implement the frame attribute and send the patch back to Norman.

Oops. I'll fix that.

| The last issue with "list-item-label" is the one that prevented
| me from using 1.26.  Haven't had the time to really look at that
| one yet ...

I'm at the XSL WG meeting this week, but I plan to fix that next
week.

| Just remember that the DocBook stuff was written for SGML first
| and that worked wonderfully.  The 1.28 is experimental and has
| a few gliches here and there.

I don't follow, the XSLT stylesheets have never had anything to do
with SGML.

                                        Be seeing you,
                                          norm

-- 
Norman.Walsh@East.Sun.COM    | Nearly every complex solution to a
Technology Development Group | programming problem that I have looked
Sun Microsystems, Inc.       | at carefully has turned out to be
                             | wrong.--Brent Welch

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org