Re: What to do about newlines in attribute values?

David Lee scripsit:

> If we allow newlines in attributes, what is the case for being
> incompatible with XML in the data model for attributes (i.e. maintaining
> the newlines instead of turning to spaces)

It's straightforward: you put characters in an attribute value, you get
the same characters out, just as in element content.  No special rules or
explanations are needed.

-- 
John Cowan   <cowan@ccil.org>   http://www.ccil.org/~cowan
One time I called in to the central system and started working on a big
thick 'sed' and 'awk' heavy duty data bashing script.  One of the geologists
came by, looked over my shoulder and said 'Oh, that happens to me too.
Try hanging up and phoning in again.'  --Beverly Erlebacher

Received on Friday, 14 September 2012 20:24:28 UTC