[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
DocBook question
From: "Kristin E Thomas" ####@####.#### Date: 7 May 2001 18:18:55 -0000 Message-Id: <OF79D89764.B76AF2BD-ON85256A45.00641015@raleigh.ibm.com > Hi Everyone, I'm trying to set up a DocBook book, and I'm having a few problems. I want to have one book file that has an entity declaration for each chapter file, so I can keep the chapters as separate file. I've been trying to find an example of how to do this, but the book example in the LDP Author Guide seems to be missing. I have several of the chapter files set up already, but I can't figure out the right way to declare those entities in my main book file. I'd appreciate any help I can get. Thanks, Kristin ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Kristin Thomas Linux Information Development Linux Technology Center Ph. (512) 838-4546 T/L 678-4546 Bldg. 908 1D002 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: DocBook question
From: Mark Komarinski ####@####.#### Date: 7 May 2001 18:27:46 -0000 Message-Id: <3AF6E91E.5060606@valinux.com> Kristin, Use the source...:) The LAG itself is built around this, and I'm using this feature elsewhere. Here's the quick idea. This *should* be the same if you're using XML or SGML. 1) Set ENTITY declarations in the main file: <!DOCTYPE book PUBLIC '-//OASIS//DTD DocBook XML V4.1.2//EN' [ <!ENTITY chap1 SYSTEM "chap1.xml"> <!ENTITY chap2 SYSTEM "chap2.xml"> <!ENTITY chap3 SYSTEM "chap3.xml"> ]> 2) In the main file, include references to the entities you've created: <book id="foo"> [author stuff] [revision stuff] &chap1; &chap2; &chap3; </book> 3) In each chap?.xml file, write it as if it were a chapter: <chapter id="chapter1"> <title>foo</title> <para> </para> </chapter> ...And that's it. -Mark Kristin E Thomas wrote: > Hi Everyone, > I'm trying to set up a DocBook book, and I'm having a few problems. I want > to have one book file that has an entity declaration for each chapter file, > so I can keep the chapters as separate file. I've been trying to find an > example of how to do this, but the book example in the LDP Author Guide > seems to be missing. I have several of the chapter files set up already, > but I can't figure out the right way to declare those entities in my main > book file. I'd appreciate any help I can get. > > Thanks, > Kristin > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > Kristin Thomas > Linux Information Development > Linux Technology Center > Ph. (512) 838-4546 > T/L 678-4546 > Bldg. 908 1D002 > > > _________________________ > http://list.linuxdoc.org/ -- Mark Komarinski - Senior Systems Engineer - VA Linux Systems (cell) 978-697-2228 (email) ####@####.#### "Have one day pleasant" - Babelfish | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
DocBook question
From: Machtelt Garrels ####@####.#### Date: 24 Feb 2005 11:46:17 -0000 Message-Id: <Pine.LNX.4.44.0502241140551.2005-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) iD8DBQFCHb+wsIIUbMXbBA8RAnffAJ94jhpYmbl+HwZTIPt1swCdKLHaxACfQ+Cx h8J3y0h47CYvxTZ0A3gus60= =vVhc -----END PGP SIGNATURE----- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |