Re: newlines and sax.saxutils.quoteattr

2006-09-19 Thread Edward K. Ream
Thanks, Fredrik, for the reference to the attribute normalization algorithm. > I guess it's too late to fix OPML. It's too late for OPML 1. I'll check with Dave Winer about OPML 2. Edward Edward K. Ream email: [EMAIL PROTEC

Re: newlines and sax.saxutils.quoteattr

2006-09-19 Thread Fredrik Lundh
Edward K. Ream wrote: > - Does anyone know whether this is guaranteed to be a general solution? That > is, are sax parsers *obliged* to ignore newlines in attributes? http://www.w3.org/TR/REC-xml/#AVNormalize > - If sax parsers are indeed obliged to ignore newlines in attributes, would >

newlines and sax.saxutils.quoteattr

2006-09-19 Thread Edward K. Ream
Hello all, I recently ran across a situation in which sax.saxutils.quoteattr did not work as I expected. I am writing Leo outlines as opml files http://en.wikipedia.org/wiki/OPML which forces me to write python code in xml attributes rather than xml elements (as is done in .leo files). The pro