[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: Re: [relax-ng] attributes in compact syntax
This doesn't work because of name classes. The grammar relies on the presence of "{" to tell when the name class ends. If the value becomes optional then it is ambiguous whether attribute foo|bar means attribute foo { text } | bar or attribute foo|bar { text } James ----- Original Message ----- From: "Michael Fitzgerald" <mike@wyeast.net> To: "RELAX NG List" <relax-ng@lists.oasis-open.org> Sent: Saturday, May 25, 2002 8:30 AM Subject: [relax-ng] attributes in compact syntax > Since we allow > > <attribute name="glorp"/> > > to be equivalent to > > <attribute name="glorp"><text/></attribute> > > couldn't we, in compact syntax, allow > > attribute glorp, > > to be the equivalent of > > attribute glorp { text }, ? > > In other words, if the next token after the attribute's name is a comma and > not a curly brace, the processor writes <text/>. > > Mike > > > ---------------------------------------------------------------- > To subscribe or unsubscribe from this elist use the subscription > manager: <http://lists.oasis-open.org/ob/adm.pl> > > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC