[Haskell-cafe] [tagsoup] is it the expected behaviour ?

Uwe Schmidt si at fh-wedel.de
Tue May 20 03:11:50 EDT 2008


Ketil Malde wrote:

> I don't think that is legal XML. The definitions of STag and Attribute
> from http://www.w3.org/TR/xml11/#NT-STag are:
>
>   [40]   STag	   ::= 	'<' Name (S  Attribute)* S? '>'
>   [41]   Attribute ::= 	Name Eq AttValue
>
> And 'S' represents one or more whitespace characters, so it seems
> clear that they are not allowed between Name, Eq, and AttValue.

indeed it's legal because of rule [25] (http://www.w3.org/TR/xml11/#NT-Eq)

[25]   	Eq	   ::=   	 S? '=' S?

and rule [3]

[3]   	S	   ::=   	(#x20 | #x9 | #xD | #xA)+

Cheers,

Uwe


More information about the Haskell-Cafe mailing list