W3C home > Mailing lists > Public > www-html-editor@w3.org > October to December 2006

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

From: Steven Pemberton <steven.pemberton@cwi.nl>
Date: Mon, 30 Oct 2006 15:28:14 +0100
To: MichaelB <borg42@web.de>, www-html-editor@w3.org
Message-ID: <op.th8ntcmvsmjzpq@acer3010.wlan.cwi.nl>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:17:55 GMT