[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
DocBook question
From: Machtelt Garrels ####@####.#### Date: 3 Mar 2005 10:53:04 -0000 Message-Id: <Pine.LNX.4.44.0503030947280.8193-100000@cobra.xalasys.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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. Then I also want the questions to be numbered, and the answers as well: 1. question blabla A. answer B. answer 2. question blabla A. answer B. answer C. answer I tried labeling the questions using <question label="1">, <question label="2"> etc, but to no effect. I guess there is no processing instruction for this (yet). Maybe I better go for orderedliss instead of trying this with qandaset? Any advise would be greatly appreciated. Tille. - -- My Penguin, my freedom. http://tille.xalasys.com Books: http://writers.fultus.com/garrels -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQFCJt1VsIIUbMXbBA8RAjikAJ9AD1AsNHq+reqK6fd8JhEOcFzinQCggCxn QxLwV+o3XDzJ/JpvV9IxJkI= =7E0R -----END PGP SIGNATURE----- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |