[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: New entries file format.

From: <kfogel_at_newton.ch.collab.net>
Date: 2003-01-28 06:16:46 CET

Greg Hudson ghudson@MIT.EDU writes:
 I think you're making the situation overly vague. I was surprised and
 irritated to learn that XML attribute values are normalized, but the
 rules are quite clear once you're pointed in the right direction:
 Since undeclared attributes are assumed to be CDATA, we should be okay
 as long as we quote #x9, #xA, and #xD characters in attribute values.
 It's possible that the rules are not implemented consistently by XML
 parsers, but I have seen no evidence of that claim.

Yup, that's very clear; thanks for posting the link. I believe that
Expat was actually behaving compliantly w.r.t. that spec today, so my
claim that parser implementations could be unreliable was unreliable.

I'd never heard of XML normalization before today. When I saw Expat
turning two consecutive spaces into one, I wondered if I'd fallen into
some sort of horror movie.

 I am -1 on this change unless a better argument can be presented for
 making it.

If Expat is really following these rules, I agree with you. We're
going to need a pair of routines for attribute escaping/now, though,
analogous to xml_escape() and xml_unescape in libsvn_subr/xml.c.


 (And, I'd just like to say again that I hate XML.)



To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 14 02:21:16 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.