Re: Virtual Pages

Dave_Raggett <dsr@hplb.hpl.hp.com>
Errors-To: listmaster@www0.cern.ch
Date: Fri, 25 Feb 1994 13:26:57 --100
Message-id: <9402241148.AA03243@manuel.hpl.hp.com>
Errors-To: listmaster@www0.cern.ch
Reply-To: dsr@hplb.hpl.hp.com
Originator: www-talk@info.cern.ch
Sender: www-talk@www0.cern.ch
Precedence: bulk
From: Dave_Raggett <dsr@hplb.hpl.hp.com>
To: Multiple recipients of list <www-talk@www0.cern.ch>
Subject: Re: Virtual Pages
X-Listprocessor-Version: 6.0c -- ListProcessor by Anastasios Kotsikonas
Content-Length: 1210
Peter Flyn writes:

> (I don't like the idea of hardcoding <P> numbers, but let it stand for
> the moment). What is going to be crucial for many applications is to
> have not only the stuff numbered locally, eg

> 3. Marketing aspects

> 3.1 text text text

> 3.2 ...

> but numbered _in context_, so that if this particular <div2> occurs
> within a <div1> numbered "4", it will appear

> 4.3 Marketing aspects

> 4.3.1 text text text

> 4.3.2 ...

> or at least, to have this structural-numerical framework retrievable,
> maybe in a structure window like some SGML editors do.

> Has anyone any pointers as to how we might achieve this?

The obvious approach is to use an element in the document head to
initialize the starting numbers. This could also be used to specify
that paragraphs or maybe just headers are to be numbered. That way
you wouldn't have to place an attribute on each <P> element.

   e.g. <NUMBER FROM="4.7" WHICH="H1 H2 H3 H4 H5 H6 P">

Where the which attribute is a namelist of tag names. The from
attribute also implies a context for DIVs in which the current node
fits as part of a larger document. The NUMBER element could be implicit
when following Subdocument links.

Dave Raggett