<feed xmlns="http://www.w3.org/2005/Atom" xmlns:foaf="http://xmlns.com/foaf/0.1/"><title>norman.walsh.name: Comments on /2003/06/01/xmlnotoo</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2003/06/01/xmlnotoo"/><id>http://norman.walsh.name/2003/06/01/xmlnotoo/comments.atom</id><updated>2012-02-13T10:24:13.714986Z</updated><entry><title>Comment 1 on /2003/06/01/xmlnotoo</title><link rel="alternate" type="text/html" href="http://norman.walsh.name/2003/06/01/xmlnotoo#comment0001"/><id>http://norman.walsh.name/2010/09/25/oauth#comment0001</id><published>2011-01-07T13:28:55Z</published><updated>2011-01-07T13:28:55Z</updated><author><name>Stephane Gasser</name><foaf:mbox_sha1sum>da39a3ee5e6b4b0d3255bfef95601890afd80709</foaf:mbox_sha1sum></author><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml"><p>I'm currently discovering Docbook, so I don't know if this makes
sense, but it seems to me that in the documentation of Docbook,
there is already a sort of hierarchy.</p>
<p>First, you have structural elements ("book", "section"...),
meta-information elements ("abstract", "author"...), and content
elements ("para", "mediaobject"...). These look like 3 basic
classes from which specific elements are derived.</p>
<p>Then, in content elements, you have blocks and inline elements
(including raw text), which again looks like 2 sub-classes of
elements.</p>
<p>One could thus imagine to construct a hierarchy of elements like
in OO programing.</p>
<p>Concerning aggregates, like "formalpara", it was build like an
aggregate, but why wouldn't it be possible to derive "formalpara"
by just adding an extra compulsory element "title" at the
beginning?</p>
<p>To my opinion, such an OO design is possible, and could simplify
the writing of allowed children. For instance, instead of listing
all possible blocks as possible childs, I think that only precising
which class of elements are allowed, like only "inline" elements in
a "simplepara" would make things easier.</p>
<p>However, I have no idea whether this is possible using Relax NG
directly (possibly another XML Schema should be invented?!).</p></div></content></entry></feed>

