On Tue, 24 Oct 2006 18:26:37 +0200, MichaelB <[EMAIL PROTECTED]> wrote:

What is the use of this complex construct?:

<!-- content model is %head.misc; combined with a single
title and an optional base element in any order -->

<!ELEMENT head (%head.misc;,
((title, %head.misc;, (base, %head.misc;)?) |
(base, %head.misc;, (title, %head.misc;))))>

Wouldn't this one be simpler?

<!ELEMENT head (title|%head-misc;|base?)>

No, because it says something different. The first one says that a head consists of head.misc with exactly one title somewhere in it, and at most one base somewhere within it. Your simpler one says that the head is a title, or an optional base or head.misc.

Best wishes,

Steven Pemberton

Reply via email to