docbook: DocBook question


Previous by date: 3 Mar 2005 17:23:06 -0000 DocBook question, Machtelt Garrels
Next by date: 3 Mar 2005 17:23:06 -0000 LDP Docbook Graphics, linux_user98765.yahoo.com
Previous in thread: 3 Mar 2005 17:23:06 -0000 DocBook question, Machtelt Garrels
Next in thread:

Subject: Re: DocBook question
From: "David Horton" ####@####.####
Date: 3 Mar 2005 17:23:06 -0000
Message-Id: <W6915414056119001109870559@webmail4>

> -----Original Message-----
> From: Machtelt Garrels ####@####.####
> Sent: Thursday, March 3, 2005 09:48 AM
> To: ####@####.####
> Subject: DocBook question 
> 
> Hello All,
> 
> Can anyone here help me with the following:
> 
> I'm writing a FAQ in DocBook XML, and I want the answer(s) to a question
> to be printed on the same page.
> I tried the advise that is explained here:
> http://www.sagehill.net/docbookxsl/PageBreaking.html
> - -> soft page breaks are not supported yet (I use xsltproc and fop-0.20.5)
> - -> hard breaks with the code snippet and my own XSL stylesheet containing
> only this template and a reference to
> /usr/share/docbook-xsl-1.67.2/fo/docbook.xsl gives this error:
> 
> namespace error: Namespace prefix fo on block is not defined.
> 
> I also tried the keep-together method but it does not seem to work on
> qandaentry.
> 
> 
<snip>
> 
> Any advise would be greatly appreciated.
> 
> Tille.


Have you tried 'keep-with-next="always"'?  I have had good luck using
this.  Well, at least FOP does not complain about it not being
implemented yet.

For example:

  <xsl:template match="instructions">
    <fo:block keep-with-next="always">Instructions</fo:block>
    <fo:block><xsl:apply-templates/></fo:block>
  </xsl:template>

As far as your namespace error, do you have
xmlns:fo="http://www.w3.org/1999/XSL/Format" in your customization
layer?

Dave




Previous by date: 3 Mar 2005 17:23:06 -0000 DocBook question, Machtelt Garrels
Next by date: 3 Mar 2005 17:23:06 -0000 LDP Docbook Graphics, linux_user98765.yahoo.com
Previous in thread: 3 Mar 2005 17:23:06 -0000 DocBook question, Machtelt Garrels
Next in thread:


  ©The Linux Documentation Project, 2014. Listserver maintained by dr Serge Victor on ibiblio.org servers. See current spam statz.