Re: Comments about the spec

From
James Clark <>
Date
2001-07-14T01:11:14+00:00
ID
Thread
Re: Comments about the spec
>> > 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="  ".

I think you meant to say:

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

On the other hand <element name="foo"><empty/></element> does match

<foo>  </foo>

James