Re: Attribute defaults

From
Murata Makoto <>
Date
2001-06-19T14:29:54+00:00
ID
Thread
Re: Attribute defaults
Michael Fitzgerald wrote:

> So what if some arbitrary XML vocabulary requires a default attribute value?
> For example, the SOAP mustUnderstand attribute with a default value of 0.
> Would a developer have to avoid RELAX NG because s/he could not represent
> such defaults in a pattern? -Mike

James has already provided a good answer.  Let me add some observation.

Digital signature people very much dislike default values of XML 1.0, because 
default values (which may be used or ignored) have impacts on digital 
signature.  If we introduce default values in RELAX NG, we make the situation 
even worse.  I think that programmers can easily hardcode "default values" 
in their programs or XSLT stylesheets.

Cheers,

Makoto