diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2002-03-17 10:34:11 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2002-03-17 10:34:11 +0000 |
commit | 2d347fac9815f5c4a1c9073b4e04c892a5245c8a (patch) | |
tree | 3eac8488ffa0157f41e1544afff6ab8f45c22921 /c14n.c | |
parent | 38bf6f042507c6051bfa2db5cc9b6666cfc35c2a (diff) | |
download | libxml2-2d347fac9815f5c4a1c9073b4e04c892a5245c8a.tar.gz |
applied a new patch from Aleksey Sanin updated the documentation to
* c14n.c: applied a new patch from Aleksey Sanin
* doc/site.xsl doc/xml.html doc/*.html: updated the documentation
to reference Aleksey implementation of XML digital Signatures
Daniel
Diffstat (limited to 'c14n.c')
-rw-r--r-- | c14n.c | 21 |
1 files changed, 8 insertions, 13 deletions
@@ -437,20 +437,15 @@ xmlExcC14NProcessNamespacesAxis(xmlC14NCtxPtr ctx, xmlNodePtr cur) attr = cur->properties; while (attr != NULL) { /* - * todo: do we need to check that attribute is visible and has non - * default namespace + * we need to check that attribute is visible and has non + * default namespace (XML Namespaces: "default namespaces + * do not apply directly to attributes") */ - if (xmlC14NIsVisible(ctx, attr)) { - ns = (attr->ns != NULL) ? attr->ns : xmlSearchNs(ctx->doc, cur, - NULL); - if ((ns != NULL) && (xmlC14NIsVisible(ctx, attr)) && - (!xmlC14NIsXmlNs(ns))) { - if ((xmlListSearch(list, ns) == NULL) - && (!xmlExcC14NIsRendered(ctx, ns))) { - xmlListInsert(list, ns); - xmlXPathNodeSetAdd(ctx->ns_rendered, (xmlNodePtr) ns); - } - } + if ((attr->ns != NULL) && xmlC14NIsVisible(ctx, attr) && + (xmlListSearch(list, attr->ns) == NULL) && + (!xmlExcC14NIsRendered(ctx, attr->ns))) { + xmlListInsert(list, attr->ns); + xmlXPathNodeSetAdd(ctx->ns_rendered, (xmlNodePtr) attr->ns); } attr = attr->next; } |