fixed c14n bug with serializing attribute namespaces

This commit is contained in:
Aleksey Sanin 2004-05-25 17:39:48 +00:00
parent 9912705b82
commit 64453bc681
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2004-05-25 Aleksey Sanin <aleksey@aleksey.com>
* c14n.c: fixed c14n bug with serializing attribute namespaces
Mon May 24 08:22:48 HKT 2004 William Brack <wbrack@mmm.com.hk>
* xpath.c: fixed to allow '+' in exponent of number

2
c14n.c
View File

@ -757,7 +757,7 @@ xmlExcC14NProcessNamespacesAxis(xmlC14NCtxPtr ctx, xmlNodePtr cur, int visible)
*/
if((attr->ns != NULL) && xmlC14NIsVisible(ctx, attr, cur)) {
already_rendered = xmlExcC14NVisibleNsStackFind(ctx->ns_rendered, attr->ns, ctx);
xmlC14NVisibleNsStackAdd(ctx->ns_rendered, attr->ns, (xmlNodePtr)attr);
xmlC14NVisibleNsStackAdd(ctx->ns_rendered, attr->ns, cur);
if(!already_rendered && visible) {
xmlListInsert(list, attr->ns);
}