Comment on Associating Style Sheets, 2009-09-19 edition

I don't see the point of this paragraph:

> A PICharRef has the same semantics as a CharRef in XML, except that
> Legal Character is not a well-formedness constraint. User agents
> must replace the PICharRef in the pseudo-attribute's value with the
> character it represents according to XML had it been a CharRef, except
> if the character being referred does not match the production for Char
> in XML, in which case the processing instruction must be ignored. [XML]

Since the effect is the same (ignore the whole PI), why not go ahead
and make Legal Character a WFC?  Then change the first paragraph to
say "must match [...] and must satisfy the WFC", and all is done.
Nobody really wants illegal characters in PICharRefs, and for future
use we may as well declare them a well-formedness error.

-- 
It was dreary and wearisome.  Cold clammy winter still held way in this
forsaken country.  The only green was the scum of livid weed on the dark
greasy surfaces of the sullen waters.  Dead grasses and rotting reeds loomed
up in the mists like ragged shadows of long-forgotten summers.
        --"The Passage of the Marshes"          http://www.ccil.org/~cowan

Received on Friday, 11 September 2009 07:44:31 UTC