+Fri Aug 29 12:28:12 CEST 2003 Daniel Veillard <daniel@veillard.com>
+
+ * libxslt/transform.c: fixing the bug #120971 on cdata-section-elements
+ with namespaced names reported by Steve Hay
+ * tests/docs/Makefile.am tests/docs/bug-129.*
+ tests/general/Makefile.am tests/general/bug-129*: added the
+ test to the regression suite for this bug.
+
Thu Aug 28 18:30:11 CEST 2003 Igor Zlatkovic <igor@zlatkovic.com>
* libxslt/xsltexports.h libexslt/exsltexports.h: fixed typos reported by
len = xmlStrlen(string);
if ((ctxt->type == XSLT_OUTPUT_XML) &&
(ctxt->style->cdataSection != NULL) &&
- (target != NULL) &&
- (xmlHashLookup(ctxt->style->cdataSection,
- target->name) != NULL)) {
+ (target != NULL) && (target->type == XML_ELEMENT_NODE) &&
+ (((target->ns == NULL) &&
+ (xmlHashLookup2(ctxt->style->cdataSection,
+ target->name, NULL) != NULL)) ||
+ ((target->ns != NULL) &&
+ (xmlHashLookup2(ctxt->style->cdataSection,
+ target->name, target->ns->href) != NULL)))) {
if ((target != NULL) && (target->last != NULL) &&
(target->last->type == XML_CDATA_SECTION_NODE)) {
return(xsltAddTextString(ctxt, target->last, string, len));
if ((ctxt->type == XSLT_OUTPUT_XML) &&
(ctxt->style->cdataSection != NULL) &&
- (target != NULL) &&
- (xmlHashLookup(ctxt->style->cdataSection,
- target->name) != NULL)) {
+ (target != NULL) && (target->type == XML_ELEMENT_NODE) &&
+ (((target->ns == NULL) &&
+ (xmlHashLookup2(ctxt->style->cdataSection,
+ target->name, NULL) != NULL)) ||
+ ((target->ns != NULL) &&
+ (xmlHashLookup2(ctxt->style->cdataSection,
+ target->name, target->ns->href) != NULL)))) {
copy = xmlNewCDataBlock(ctxt->output, cur->content,
xmlStrlen(cur->content));
ctxt->lasttext = NULL;
bug-126.out bug-126.xsl \
bug-127.out bug-127.xsl \
bug-128.out bug-128.xsl \
+ bug-129.out bug-129.xsl \
character.out character.xsl \
character2.out character2.xsl \
itemschoose.out itemschoose.xsl \