[xml] small patch for c14n.c



Daniel,

Please find attached a small patch for c14n.c. There was a small change in
the ExcC14N spec so this patch makes change in LibXML implementation.


Thanks,

Aleksey.
Index: c14n.c
===================================================================
RCS file: /cvs/gnome/gnome-xml/c14n.c,v
retrieving revision 1.8
diff -r1.8 c14n.c
428c428
<      * todo: do we need to check for default "xml:" namespace
---
     * we also need to check for default "xml:" namespace
432,433c432
<         (xmlListSearch(list, ns) == NULL)) {
<         if (!xmlExcC14NIsRendered(ctx, ns)) {
---
      (xmlListSearch(list, ns) == NULL) && !xmlExcC14NIsRendered(ctx, ns)) {
436d434
<         }
446,449c444,447
<                                (xmlListSearch(list, attr->ns) == NULL) && 
<                                (!xmlExcC14NIsRendered(ctx, attr->ns))) {
<             xmlListInsert(list, attr->ns);
<             xmlXPathNodeSetAdd(ctx->ns_rendered, (xmlNodePtr) attr->ns);
---
          (!xmlC14NIsXmlNs(attr->ns)) && 
            (xmlListSearch(list, attr->ns) == NULL) && (!xmlExcC14NIsRendered(ctx, attr->ns))) {
              xmlListInsert(list, attr->ns);
              xmlXPathNodeSetAdd(ctx->ns_rendered, (xmlNodePtr) attr->ns);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]