[XML-SIG] xmlproc, Lexical handler and CDATA

Sylvain Thenault Sylvain.Thenault@logilab.fr
Mon, 3 Dec 2001 16:38:05 +0100 (CET)


  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

---1463794175-1862256613-1007393885=:11611
Content-Type: TEXT/PLAIN; charset=US-ASCII


here is a patch which fix the bug in xmlproc with the lexical_handler
enabled.

It just call startCDATA and endCDATA on the lexical handler before and
after calling characters  on the content handlers.

I can commit this but I would like to have Lars opinion

-- 
Sylvain Thenault

  LOGILAB   http://www.logilab.org

---1463794175-1862256613-1007393885=:11611
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="pyxml-xmlproc.patch"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.21.0112031638050.11611@gemini.logilab.fr>
Content-Description: 
Content-Disposition: attachment; filename="pyxml-xmlproc.patch"

LS0tIC9ob21lL3N5dC94bWwveG1sL3NheC9kcml2ZXJzMi9kcnZfeG1scHJv
Yy5weQlNb24gRGVjICAzIDE2OjE2OjE4IDIwMDENCisrKyBzYXgvZHJpdmVy
czIvZHJ2X3htbHByb2MucHkJTW9uIERlYyAgMyAxNjoyODo1NyAyMDAxDQpA
QCAtMTk2LDYgKzE5NiwxMSBAQA0KICAgICANCiAgICAgZGVmIGhhbmRsZV9k
YXRhKHNlbGYsIGRhdGEsIHN0YXJ0LCBlbmQpOg0KICAgICAgICAgc2VsZi5f
Y29udF9oYW5kbGVyLmNoYXJhY3RlcnMoZGF0YVtzdGFydDplbmRdKQ0KKw0K
KyAgICBkZWYgaGFuZGxlX2NkYXRhKHNlbGYsZGF0YSxzdGFydCxlbmQpOg0K
KyAgICAgICAgc2VsZi5fbGV4X2hhbmRsZXIuc3RhcnRDREFUQSgpDQorICAg
ICAgICBzZWxmLl9jb250X2hhbmRsZXIuY2hhcmFjdGVycyhkYXRhW3N0YXJ0
OmVuZF0pDQorICAgICAgICBzZWxmLl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