Menu Specification Comments
tal00r at ecs.soton.ac.uk
Sun Jun 15 19:40:54 EEST 2003
On Sun, Jun 15, 2003 at 05:04:46PM +0200, Heinrich Wendel wrote:
> On Sunday 15 June 2003 12:50, Shaun McCance wrote:
> > 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.
> "There is exactly one element, called the root, or document element, no part
> of which appears in the content of any other element.]"
This is simply saying that no other element contains the document element
itself (or any part of it). ie, that the document element is the root of
the tree. Other elements are free to have the same name.
Thomas Leonard http://rox.sourceforge.net
tal00r at ecs.soton.ac.uk tal197 at users.sourceforge.net
GPG: 9242 9807 C985 3C07 44A6 8B9A AE07 8280 59A5 3CC1
More information about the xdg