Re: SGML objectsDave_Raggett <email@example.com>
From: Dave_Raggett <firstname.lastname@example.org>
Subject: Re: SGML objects
Date: Thu, 19 Aug 93 10:18:10 BST
Mailer: Elm [revision: 188.8.131.52]
> However, several people have suggested making sections
> into containers that nest, as with the DocBook and
> other DTDs. My question was: if that happens, how
> would large books be broken up into modular files?
I can think of one approach which would work efficiently.
Lets assume that each section is defined something like:
<H> this section's header </H>
<H> a subsection header </H>
First consider the case where a node is browsed independently of
other nodes. The style preferences define how to render the top
level header, and so on for each nested section.
Now if the node is considered as being part of a "book", the starting
level for the node can be defined by the context. As you traverse the
nodes that form the book, the browser keeps track of the level.
In many ways this is like the notion of context dependent navigation
links for table of contents, glossary etc. You could use an element
at the start of a node to define the starting level, or rely on
browsers propagating this property on the fly. The latter could even
be allowed to override the former, which is then treated as a default.
Personally, I prefer the explicit style in HTML and HTML+.