Menu Specification Comments
sysop at heinospage.de
Sun Jun 15 18:04:46 EEST 2003
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.]"
> On a more practical note, I just checked libxml2 and Xerces, and neither
> require that the root element be unique.
> Xdg-list mailing list
> Xdg-list at freedesktop.org
More information about the xdg