+Sat Sep 18 17:08:31 PDT 2004 William Brack <wbrack@mmm.com.hk>
+
+ * libexslt/date.c: fixed problem with timezone offset
+ (bug 153000)
+ * tests/exslt/date/add.1.out: changed regression test output,
+ which was apparently incorrect for above case
+
+Sat Sep 18 00:04:02 PDT 2004 William Brack <wbrack@mmm.com.hk>
+
+ * libxslt/transform.c: re-arranged sequence of setting up
+ namespaces within xsltCopyTree (see the list thread
+ http://mail.gnome.org/archives/xml/2004-September/msg00072.html)
+ * tests/general/bug-104.out: slight change to expected output
+ due to above fix
+
Fri Sep 17 23:15:33 PDT 2004 William Brack <wbrack@mmm.com.hk>
* libexslt/date.c: enhanced validation of date-time to catch
if ((node->type == XML_ELEMENT_NODE) ||
(node->type == XML_ATTRIBUTE_NODE)) {
xmlNsPtr *nsList, *cur, ns;
- if (node->ns != NULL)
- copy->ns = xsltGetNamespace(ctxt, node, node->ns, copy);
- else if ((insert->type == XML_ELEMENT_NODE) && (insert->ns != NULL)) {
- xmlNsPtr defaultNs;
-
- defaultNs = xmlSearchNs(insert->doc, insert, NULL);
- if (defaultNs != NULL)
- xmlNewNs(copy, BAD_CAST "", NULL);
- }
/*
- * must also add in any new namespaces in scope for the node
+ * must add in any new namespaces in scope for the node
*/
nsList = xmlGetNsList(node->doc, node);
if (nsList != NULL) {
}
xmlFree(nsList);
}
+ if (node->ns != NULL)
+ copy->ns = xsltGetNamespace(ctxt, node, node->ns, copy);
+ else if ((insert->type == XML_ELEMENT_NODE) && (insert->ns != NULL)) {
+ xmlNsPtr defaultNs;
+
+ defaultNs = xmlSearchNs(insert->doc, insert, NULL);
+ if (defaultNs != NULL)
+ xmlNewNs(copy, BAD_CAST "", NULL);
+ }
}
if (node->nsDef != NULL) {
if (literal)
add : 2000-01 + -P1D
result : 1999-12-31
add : 1970-01-01T00:00:00-00:30 + -PT30S
-result : 1969-12-31T23:29:30Z
\ No newline at end of file
+result : 1970-01-01T00:29:30Z
\ No newline at end of file