Re: Comments about the spec

From
Murata Makoto <>
Date
2001-07-14T00:53:29+00:00
ID
Thread
Re: Comments about the spec
James Clark wrote:

> 
> > In section 4.19, <list><empty/><list> is not transformed to <empty/>.
> > Why not?
> 
> A string consisting of one or more whitespace characters will match 
> <list><empty/></list> but not <empty/>.  This doesn't make a difference in 
> the content of an element, but it does make a difference in the content of 
> an attribute.  

I was at first puzzled, but you are right.  

<element name="foo"><list><empty/></list></element> 
matches <foo>  </foo>, but <attribute name="foo"><list><empty/></list></element>
does not match foo="  ".

><list><empty/></list> could be transformed to <value 
> type="token"/>.  Would that be an improvement?

Since we allow <list>p</list> where p can be empty, I do not think that this is  
an improvement.

Cheers,

Makoto