Re: XHTML 1.0 Strict - ELEMENT: head - Confusing sort order definition?

On Tue, 24 Oct 2006 18:26:37 +0200, MichaelB <borg42@web.de> 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

Received on Monday, 30 October 2006 14:31:33 UTC