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

From
Michael Fitzgerald <>
Date
2001-10-17T20:01:12+00:00
ID
Thread
[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?

Mike

> <attribute name="reference">
>   <value>foobar</value>
> </attribute>
>
> Is very interesting. It just looks and feels right for RELAX NG, but I
think
> 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.

>regards,
>--
>Kohsuke KAWAGUCHI                          +1 650 786 0721
>Sun Microsystems