Print

Print


Is there any way to indicate the linear order in which tags may occur in
a document?
 
This is our problem:
 
We want to generate text from a DTD. This DTD has a number of <DIV
type=ATT> sections, but we don't find any way to express their relative
order in the document by means of their attributes.  Is there any
possible way of stating this ordering in the DTD, such that:
 
<DIV type=heading>
<DIV type=body>
<DIV type=end>
 
<!ELEMENT - - DIV+ >
<!ATTlLIST  div (heading | body | end)>
 
in addition to these, there is some way of stating that:
 
heading > body > end
 
where '>' means 'precedes'
___________________________________________________________
Joseba Abaitua  [log in to unmask]  http://www.deusto.es/~abaitua
Facultad de Filosofia y Letras,  Universidad de Deusto,  Apartado 1
E-48007 Bilbao || Tel: +34-4-4139092  (Ext. 2292) || Fax: +34-4-4458916