Menu Specification Comments

Shaun McCance shaunm at wolfram.com
Sun Jun 15 13:50:28 EEST 2003


On Sun, 2003-06-15 at 05:26, Havoc Pennington wrote:
> On Sun, Jun 15, 2003 at 08:37:06AM +0200, Heinrich Wendel wrote:
> 
> > I said it needs a !unique! root element. Menu is not a unique
> > element. It can (and does in most cases) appear multiply times in a
> > .menu file.
> > 
> 
> Ah, I see. I guess we have to add <useless-stupid-root-element>
> element then. I will ask Liam or Daniel to explain why that is in the
> XML spec. ;-)

I've read the XML spec a number of times, and have never seen anything
to indicate that a unique root is necessary.  It's just another element,
like any other.  In fact, XML doesn't care which element you use as your
root element.  Either Heinrich has misread the spec, or I have.

On a more practical note, I just checked libxml2 and Xerces, and neither
require that the root element be unique.

--
Shaun





More information about the xdg mailing list