OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

relax-ng message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Subject: [relax-ng] Re: That default issue again.

Oh for the love of Pete. No wonder it "looked" right. Allow me to assume the
post of whipping boy d'jour.

If I understand the XML spec correctly, #FIXED is NOT required, but if the
#FIXED attribute is present, its value must match the default value. That is
not the same as #REQUIRED, as the attribute must always be present but the
value is not fixed. So I don't think #FIXED is exactly #REQUIRED +
defaultValue. Have I got it right?


> <attribute name="reference">
>   <value>foobar</value>
> </attribute>
> Is very interesting. It just looks and feels right for RELAX NG, but I
> it is quite late to introduce syntax into version 1.0.

>This syntax is completely legal in our current draft.

>Maybe I'm missing something here. my understanding of #FIXED is
>#REQUIRED + default value, hence the attribute must be present and its
>value must be the same.

>Kohsuke KAWAGUCHI                          +1 650 786 0721
>Sun Microsystems                   kohsuke.kawaguchi@sun.com

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Powered by eList eXpress LLC