This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: <procedure> - Getting Extra Line in <step>


I'd posted a fix for the problem in answer to a question a while back <http://sources.redhat.com/ml/docbook-apps/2002-q2/msg00493.html>, but neglected to log a bug or ask the poster to. Looks like half the fix was put into the distribution (at revision 1.25 of lists.xsl), but the other half (which ends up doing the same thing that Brad Thacker's fix does) wasn't. The template in question has been made smarter since my original post, so now add the following to your customization if you use procedures:

<xsl:template match="listitem/*[1][local-name()='para' or 
                                   local-name()='simpara' or 
                                   local-name()='formalpara']
                     |step/*[1][local-name()='para' or 
                                   local-name()='simpara' or 
                                   local-name()='formalpara']
                     |callout/*[1][local-name()='para' or 
                                   local-name()='simpara' or 
                                   local-name()='formalpara']"
              priority="2">
  <fo:block>
    <xsl:apply-templates/>
  </fo:block>
</xsl:template>

I committed this change to cvs (revision 1.31 of lists.xsl). 

David

-----Original Message-----
From: Bob Stayton [mailto:bobs@caldera.com]
Sent: Tuesday, December 24, 2002 8:53 AM
To: swheller@bigpond.net.au; docbook-apps@lists.oasis-open.org
Subject: Re: DOCBOOK-APPS: <procedure> - Getting Extra Line in <step>


On Tue, Dec 24, 2002 at 05:24:19PM +1100, Sean Wheller wrote:
> On Date: Thu, 25 Jul 2002 12:28:08 -0600, "Thacker, Brad" 
> <Brad_Thacker@jdedwards.com> wrote:
> From my experience, this appears to be a bug in the xsl stylesheets. I've
> >seen this problem for over a year, and I've upgraded through three versions
> >of docbook-xsl (I'm currently at 1.49). I was able to fix the problem by
> >adding the following template to my customization layer:
> >
> >
> ><xsl:template match="step/para[1]">
> >                <fo:block>
> >                        <xsl:apply-templates/>
> >                </fo:block>
> ></xsl:template>
> 
> I don't know if the solution Brad posted, works or if any other patch was 
> posted, so if somebody knows of a solution to this problem other than that 
> posted by Brad please let me know.
> 
> I have added Brads template suggestion to my customization layer, but when 
> performing the transform from DocBook XML > FOP I get the following error:
> 
> F org.xml.sax.SAXParseException: The prefix "fo" for element "fo:block" is not 
> bound.
> 
> I use the oXygen XML Editor for my editing. As I don't understand XSL-FO I am 
> not able to dig into the problem myself. Hope somebody can help.

This is just a namespace problem.  Look at the top
of the fo/docbook.xsl distribution file and
you will see how the fo: namespace is declared,
and copy that to your customization layer.

Has someone file a sourceforge bug report on this
problem?  

-- 

Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
The SCO Group                               fax:   (831) 429-1887
                                            email: bobs@sco.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]