OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Subject: DOCBOOK: QandA: nesting questions


I've been sending messages to the docbook-tools-discuss at
sourceware.cygnus.com figuring out it would be the main discussion list
for the dtd, but it seems it's docbook at lists.oasis-open.org instead.
Just a bit confused by the cygnus, mulberrytech and oasis lists.

Anyway, here goes my problem:

I'm converting a FAQ to DocBook using <bookand <qandaset>.

Instead of having it all in one sgml file I split the sources into
various <chapter>'s.  Please, bear with me through the example.  I'll
write the questions in between <!-- --comments.

---------- Main file (faq.sgml) ----------

  ... some entities ...
  <!ENTITY intro SYSTEM "intro.sgm">
  <!ENTITY resources SYSTEM "resources.sgm">


<graphic format="ps" align="center" fileref="../images/image"></graphic>

<!-- problems with graphic are:
1) I can't make it show above the title or to the left of the title
centering the title.  Is this possible?
2) db2html produces an html output with the graphic included (in
book1.html: SRC="../images/image.gif"), wheras db2ps (or db2pdf) don't
include the graphic at all (in faq.tex: {../images/image.eps}).  Now,
this is weird as images/image is a file converted to ps, so how can I
see with html an inexistant file?  and how can I make the ps graphic
show on ps or pdf without fiddling with the latex source?




... some different types of lists: <itmezidelist<glosslist>




---------- end ----------

---------- resources.sgm ----------

<chapter id="resources" xreflabel="2">


<graphic format="ps" align="center" fileref="../images/image"></graphic>

<qandaset id="info" defaultlabel="number">

<!-- so far so good, except for the numbering scheme which I'll comment
at the end.  But now I need to nest some Q&As -->


<!-- and the next Q&As I want them to be subquestion within the previous
question, so I don't close the </qandaentrytag until (*), and instead
I open a <qandadivtag -->




<!-- ok, I've tried several other ways, but none seems to work.  Well,
it does work, but still get the parsing error:

jade:../resourcex.sgm:332:21:E: document type does not allow element

which I assume means that I should be using <article class="faq">
instead of <book>, but that gives me the same error and doesn't allow me
to have the html output nicely split as with <book-->
----------- end -----------

The problem with the numbering scheme is that while I get a chapter 1,
and all Q&As within that chapter numbered 1.1, 1.2, 1.3, 1.4, ..., then
on chapter 2 I get again Q&As numbered as 1.1, 1.2, 1.3, and the q&a's
nested within 1.3 are numbered 1.1.1, 1.1.2, ...

how can I have Q&As in chapter 2 (and subsequent chaps) numbered as 2.x,
and how can I have nested q&a's with the numbering scheme:
[chapter].[Q&A].1, [chapter].[Q&A].2, ...  ??

Thank you for your patience,

Horacio					Anno MMDCCLIII A.U.C.
hacho@crosswinds.net			Valencia - ESPAŅA
Key fingerprint = F4EE AE5E 2F01 0DB3 62F2  A9F4 AD31 7093 4233 7AE6

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Powered by eList eXpress LLC