summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2004-10-26 21:55:22 +0000
committerDaniel Veillard <veillard@src.gnome.org>2004-10-26 21:55:22 +0000
commitb7f2e1d0034a576ebb8026d19a193d76bd9e9109 (patch)
tree985383b8aee5bb1d7d264113df2f93e0441b926b
parente21d0a503b1a01a074bed2805b68c097f825caae (diff)
downloadlibxslt-b7f2e1d0034a576ebb8026d19a193d76bd9e9109.tar.gz
libxslt-b7f2e1d0034a576ebb8026d19a193d76bd9e9109.tar.bz2
libxslt-b7f2e1d0034a576ebb8026d19a193d76bd9e9109.zip
fix to force string interning on generated documents Daniel
* libxslt/transform.c: fix to force string interning on generated documents Daniel
-rw-r--r--ChangeLog5
-rw-r--r--libxslt/transform.c9
2 files changed, 10 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 9541eb12..1f486762 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Oct 27 00:00:07 CEST 2004 Daniel Veillard <daniel@veillard.com>
+
+ * libxslt/transform.c: fix to force string interning on generated
+ documents
+
Sat Oct 23 09:36:12 PDT 2004 William Brack <wbrack@mmm.com.hk>
* libexslt/crypto.c, libexslt/functions.c, libxslt/keys.c,
diff --git a/libxslt/transform.c b/libxslt/transform.c
index 5866f8ae..dd5f1963 100644
--- a/libxslt/transform.c
+++ b/libxslt/transform.c
@@ -817,7 +817,7 @@ xsltCopyNode(xsltTransformContextPtr ctxt, xmlNodePtr node,
if ((node->type == XML_TEXT_NODE) ||
(node->type == XML_CDATA_SECTION_NODE))
return(xsltCopyText(ctxt, insert, node));
- copy = xmlCopyNode(node, 0);
+ copy = xmlDocCopyNode(node, insert->doc, 0);
if (copy != NULL) {
copy->doc = ctxt->output;
xmlAddChild(insert, copy);
@@ -998,7 +998,7 @@ xsltCopyTree(xsltTransformContextPtr ctxt, xmlNodePtr node,
copy = NULL;
return(copy);
}
- copy = xmlCopyNode(node, 0);
+ copy = xmlDocCopyNode(node, insert->doc, 0);
if (copy != NULL) {
copy->doc = ctxt->output;
xmlAddChild(insert, copy);
@@ -2479,7 +2479,8 @@ xsltCopy(xsltTransformContextPtr ctxt, xmlNodePtr node,
XSLT_TRACE(ctxt,XSLT_TRACE_COPY,xsltGenericDebug(xsltGenericDebugContext,
"xsltCopy: PI %s\n", node->name));
#endif
- copy = xmlNewPI(node->name, node->content);
+ copy = xmlNewDocPI(ctxt->insert->doc, node->name,
+ node->content);
xmlAddChild(ctxt->insert, copy);
break;
case XML_COMMENT_NODE:
@@ -2784,7 +2785,7 @@ xsltProcessingInstruction(xsltTransformContextPtr ctxt, xmlNodePtr node,
}
#endif
- pi = xmlNewPI(name, value);
+ pi = xmlNewDocPI(ctxt->insert->doc, name, value);
xmlAddChild(ctxt->insert, pi);
error: