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


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

book schema


Hello,

Iīm writing a document on SGML with DocBook 4.1, and I wondered
if the following would be right:

- one main file with the dtd declaration, book.sgml:

----- start book.sgml -----
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
<!ENTITY % entidades.ent SYSTEM "entidades.ent">
%entidades.ent;
]>
<book lang="es" status="draft"><?dbhtml prefix="cap-">
<bookinfo>
blah...
</bookinfo>

<!-- mmmhh.. arenīt the <toc></toc> elements needed here -->

<part><title>Title 1st part</title>
&chapter1
&chapter2
&chapter3
</part>

<part><title>Title 2nd part</title>
&chapter4
&chapter5
&chapter6
</part>

<part><title>Title 3rd part</title>
&chapter7
&chapter8
&chapter9
</part>

<part><title>Glosario</title>
&glossar1
&glossar2
</part>

</book>
----- end book.sgml -----


- the entidades.ent file reads:

----- start entidades.ent -----

<!ENTITY blah "<emphasis>blah&hellip;</emphasis>">
... many other entities
<!ENTITY chapter1 SYSTEM "file1.sgml">
<!ENTITY chapter2 SYSTEM "file2.sgml">
<!ENTITY chapter3 SYSTEM "file3.sgml">
<!ENTITY chapter4 SYSTEM "dir1/file1.sgml">
<!ENTITY chapter5 SYSTEM "dir1/file2.sgml">
<!ENTITY chapter6 SYSTEM "dir1/file3.sgml">
<!ENTITY chapter7 SYSTEM "dir2/file1.sgml">
<!ENTITY chapter8 SYSTEM "dir2/file2.sgml">
<!ENTITY chapter9 SYSTEM "dir2/file3.sgml">
<!ENTITY chapter9 SYSTEM "dir3/glossar1.sgml">
<!ENTITY chapter9 SYSTEM "dir3/glossar1.sgml">

----- end entidades.ent -----

Then, every fileX.sgml is <chapter></chapter>, and ever
glossarX.sgml is <glossary></glossary> (I wondered if they could
be like <appendix><glossary></glossary></appendix>, so that the
glossaries would show at the end as appendices, together with
some other appendices like a bibliography.

Does everything look fine?


Thank You,
-- 
Horacio

------------------------------------------------------------------
To unsubscribe from this elist send a message with the single word
"unsubscribe" in the body to: docbook-request@lists.oasis-open.org


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