On Tue, Nov 12, 2002 at 08:55:08AM +0100, Peter Kullmann wrote:
> I have the following problem when profiling my docbook sources using
> profile.xsl: xsltproc does not escape special characters like ">" in CDATA
> sections.
[...]
> I'm not quite sure whether this is a stylesheet bug or an xsltproc bug (I'm
> pretty sure it's a bug, though). I can file a bug in either the xsltproc or

  Yup, a bug in libxml2, the mechanism which prevented xsltproc from
generating CDATA nodes when parsing the input got broken (recently I
assume during some refactoring), and the presence of CDATA nodes instead
of text nodes in the input tree generated that erroneous output.
  Will be fixed in the next release of libxml2 (patch enclosed if urgent),

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
[EMAIL PROTECTED]  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
Index: parserInternals.c
===================================================================
RCS file: /cvs/gnome/gnome-xml/parserInternals.c,v
retrieving revision 1.60
diff -c -r1.60 parserInternals.c
*** parserInternals.c   22 Oct 2002 17:35:33 -0000      1.60
--- parserInternals.c   12 Nov 2002 10:33:50 -0000
***************
*** 2250,2256 ****
      ctxt->space = &ctxt->spaceTab[0];
  
      ctxt->sax = sax;
!     initxmlDefaultSAXHandler(sax, xmlGetWarningsDefaultValue);
  
      ctxt->userData = ctxt;
      ctxt->myDoc = NULL;
--- 2250,2256 ----
      ctxt->space = &ctxt->spaceTab[0];
  
      ctxt->sax = sax;
!     memcpy(sax, &xmlDefaultSAXHandler, sizeof(xmlSAXHandler));
  
      ctxt->userData = ctxt;
      ctxt->myDoc = NULL;

Reply via email to