+Mon Dec 8 23:34:32 HKT 2003 William Brack <wbrack@mmm.com.hk>
+
+ * libxslt/transform.c, libxslt/xslt.c: modified to assure
+ XML_CDATA_SECTION_NODE's do not have xmlStringTextNoenc
+ set into node name. This modification arises from
+ bug #128520, and avoids unnecessary work in libxml2.
+
Mon Dec 1 16:41:27 CET 2003 Daniel Veillard <daniel@veillard.com>
* libxslt/*.h *.h.in: updated the metadata informations in the headers
*/
void
xsltText(xsltTransformContextPtr ctxt, xmlNodePtr node ATTRIBUTE_UNUSED,
- xmlNodePtr inst, xsltStylePreCompPtr comp) {
+ xmlNodePtr inst, xsltStylePreCompPtr comp ATTRIBUTE_UNUSED) {
if ((inst->children != NULL) && (comp != NULL)) {
xmlNodePtr text = inst->children;
xmlNodePtr copy;
break;
}
copy = xmlNewDocText(ctxt->output, text->content);
- if ((comp->noescape) || (text->type != XML_CDATA_SECTION_NODE)) {
+ if (text->type != XML_CDATA_SECTION_NODE) {
#ifdef WITH_XSLT_DEBUG_PARSING
xsltGenericDebug(xsltGenericDebugContext,
"Disable escaping: %s\n", text->content);
if (style != NULL) style->errors++;
break;
}
- if (noesc)
+ if ((noesc) && (text->type != XML_CDATA_SECTION_NODE))
text->name = xmlStringTextNoenc;
text = text->next;
}