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: David Håsäther <hasather@gmail.com>
Date: Mon, 30 Oct 2006 15:19:48 +0100
Message-ID: <45460A04.8040701@gmail.com>
To: MichaelB <borg42@web.de>
CC: www-html-editor@w3.org

On 2006-10-24 18:26, MichaelB 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?)>

It doesn't mean the same thing. That content mode would mean that "head" 
can contain "title" OR "%head-misc;" (whatever it refers to) OR "base" 
(optional).

XML removed the 'and' connector ("&") that can be used in SGML. You can 
still express everything with the other two connectors ("|" and ","), 
but it will get longer.

-- 
David Håsäther
Received on Monday, 30 October 2006 14:31:44 GMT

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