Lines Matching refs:ns
77 xmlNsPtr ns,
85 xmlNsPtr ns);
87 xmlNsPtr ns,
258 xmlNs ns; in xmlC14NIsNodeInNodeset() local
260 memcpy(&ns, node, sizeof(ns)); in xmlC14NIsNodeInNodeset()
264 ns.next = (xmlNsPtr)parent->parent; in xmlC14NIsNodeInNodeset()
266 ns.next = (xmlNsPtr)parent; in xmlC14NIsNodeInNodeset()
273 return(xmlXPathNodeSetContains(nodes, (xmlNodePtr)&ns)); in xmlC14NIsNodeInNodeset()
312 xmlC14NVisibleNsStackAdd(xmlC14NVisibleNsStackPtr cur, xmlNsPtr ns, xmlNodePtr node) { in xmlC14NVisibleNsStackAdd() argument
351 cur->nsTab[cur->nsCurEnd] = ns; in xmlC14NVisibleNsStackAdd()
411 xmlC14NVisibleNsStackFind(xmlC14NVisibleNsStackPtr cur, xmlNsPtr ns) in xmlC14NVisibleNsStackFind() argument
427 prefix = ((ns == NULL) || (ns->prefix == NULL)) ? BAD_CAST "" : ns->prefix; in xmlC14NVisibleNsStackFind()
428 href = ((ns == NULL) || (ns->href == NULL)) ? BAD_CAST "" : ns->href; in xmlC14NVisibleNsStackFind()
445 xmlExcC14NVisibleNsStackFind(xmlC14NVisibleNsStackPtr cur, xmlNsPtr ns, xmlC14NCtxPtr ctx) { in xmlExcC14NVisibleNsStackFind() argument
460 prefix = ((ns == NULL) || (ns->prefix == NULL)) ? BAD_CAST "" : ns->prefix; in xmlExcC14NVisibleNsStackFind()
461 href = ((ns == NULL) || (ns->href == NULL)) ? BAD_CAST "" : ns->href; in xmlExcC14NVisibleNsStackFind()
496 xmlC14NIsXmlNs(xmlNsPtr ns) in xmlC14NIsXmlNs() argument
498 return ((ns != NULL) && in xmlC14NIsXmlNs()
499 (xmlStrEqual(ns->prefix, BAD_CAST "xml")) && in xmlC14NIsXmlNs()
500 (xmlStrEqual(ns->href, XML_XML_NAMESPACE))); in xmlC14NIsXmlNs()
537 xmlC14NPrintNamespaces(const xmlNsPtr ns, xmlC14NCtxPtr ctx) in xmlC14NPrintNamespaces() argument
540 if ((ns == NULL) || (ctx == NULL)) { in xmlC14NPrintNamespaces()
545 if (ns->prefix != NULL) { in xmlC14NPrintNamespaces()
547 xmlOutputBufferWriteString(ctx->buf, (const char *) ns->prefix); in xmlC14NPrintNamespaces()
552 if(ns->href != NULL) { in xmlC14NPrintNamespaces()
553 xmlOutputBufferWriteString(ctx->buf, (const char *) ns->href); in xmlC14NPrintNamespaces()
602 xmlNsPtr ns, tmp; in xmlC14NProcessNamespacesAxis() local
623 for(ns = n->nsDef; ns != NULL; ns = ns->next) { in xmlC14NProcessNamespacesAxis()
624 tmp = xmlSearchNs(cur->doc, cur, ns->prefix); in xmlC14NProcessNamespacesAxis()
626 if((tmp == ns) && !xmlC14NIsXmlNs(ns) && xmlC14NIsVisible(ctx, ns, cur)) { in xmlC14NProcessNamespacesAxis()
627 already_rendered = xmlC14NVisibleNsStackFind(ctx->ns_rendered, ns); in xmlC14NProcessNamespacesAxis()
629 xmlC14NVisibleNsStackAdd(ctx->ns_rendered, ns, cur); in xmlC14NProcessNamespacesAxis()
632 xmlListInsert(list, ns); in xmlC14NProcessNamespacesAxis()
634 if(xmlStrlen(ns->prefix) == 0) { in xmlC14NProcessNamespacesAxis()
706 xmlNsPtr ns; in xmlExcC14NProcessNamespacesAxis() local
754 ns = xmlSearchNs(cur->doc, cur, prefix); in xmlExcC14NProcessNamespacesAxis()
755 if((ns != NULL) && !xmlC14NIsXmlNs(ns) && xmlC14NIsVisible(ctx, ns, cur)) { in xmlExcC14NProcessNamespacesAxis()
756 already_rendered = xmlC14NVisibleNsStackFind(ctx->ns_rendered, ns); in xmlExcC14NProcessNamespacesAxis()
758 xmlC14NVisibleNsStackAdd(ctx->ns_rendered, ns, cur); in xmlExcC14NProcessNamespacesAxis()
761 xmlListInsert(list, ns); in xmlExcC14NProcessNamespacesAxis()
763 if(xmlStrlen(ns->prefix) == 0) { in xmlExcC14NProcessNamespacesAxis()
771 if(cur->ns != NULL) { in xmlExcC14NProcessNamespacesAxis()
772 ns = cur->ns; in xmlExcC14NProcessNamespacesAxis()
774 ns = xmlSearchNs(cur->doc, cur, NULL); in xmlExcC14NProcessNamespacesAxis()
777 if((ns != NULL) && !xmlC14NIsXmlNs(ns)) { in xmlExcC14NProcessNamespacesAxis()
778 if(visible && xmlC14NIsVisible(ctx, ns, cur)) { in xmlExcC14NProcessNamespacesAxis()
779 if(!xmlExcC14NVisibleNsStackFind(ctx->ns_rendered, ns, ctx)) { in xmlExcC14NProcessNamespacesAxis()
780 xmlListInsert(list, ns); in xmlExcC14NProcessNamespacesAxis()
784 xmlC14NVisibleNsStackAdd(ctx->ns_rendered, ns, cur); in xmlExcC14NProcessNamespacesAxis()
786 if(xmlStrlen(ns->prefix) == 0) { in xmlExcC14NProcessNamespacesAxis()
799 if((attr->ns != NULL) && !xmlC14NIsXmlNs(attr->ns) && xmlC14NIsVisible(ctx, attr, cur)) { in xmlExcC14NProcessNamespacesAxis()
800 already_rendered = xmlExcC14NVisibleNsStackFind(ctx->ns_rendered, attr->ns, ctx); in xmlExcC14NProcessNamespacesAxis()
801 xmlC14NVisibleNsStackAdd(ctx->ns_rendered, attr->ns, cur); in xmlExcC14NProcessNamespacesAxis()
803 xmlListInsert(list, attr->ns); in xmlExcC14NProcessNamespacesAxis()
805 if(xmlStrlen(attr->ns->prefix) == 0) { in xmlExcC14NProcessNamespacesAxis()
808 …} else if((attr->ns != NULL) && (xmlStrlen(attr->ns->prefix) == 0) && (xmlStrlen(attr->ns->href) =… in xmlExcC14NProcessNamespacesAxis()
864 return ((attr->ns != NULL) && in xmlC14NIsXmlAttr()
865 (xmlC14NIsXmlNs(attr->ns) != 0)); in xmlC14NIsXmlAttr()
892 if (attr1->ns == attr2->ns) { in xmlC14NAttrsCompare()
901 if (attr1->ns == NULL) in xmlC14NAttrsCompare()
903 if (attr2->ns == NULL) in xmlC14NAttrsCompare()
905 if (attr1->ns->prefix == NULL) in xmlC14NAttrsCompare()
907 if (attr2->ns->prefix == NULL) in xmlC14NAttrsCompare()
910 ret = xmlStrcmp(attr1->ns->href, attr2->ns->href); in xmlC14NAttrsCompare()
942 if (attr->ns != NULL && xmlStrlen(attr->ns->prefix) > 0) { in xmlC14NPrintAttrs()
944 (const char *) attr->ns->prefix); in xmlC14NPrintAttrs()
975 …4NFindHiddenParentAttr(xmlC14NCtxPtr ctx, xmlNodePtr cur, const xmlChar * name, const xmlChar * ns) in xmlC14NFindHiddenParentAttr() argument
979 res = xmlHasNsProp(cur, name, ns); in xmlC14NFindHiddenParentAttr()
1076 attr = xmlNewNsProp(NULL, xml_base_attr->ns, BAD_CAST "base", res); in xmlC14NFixupBaseAttr()
1353 xmlNsPtr ns; in xmlC14NCheckForRelativeNamespaces() local
1360 ns = cur->nsDef; in xmlC14NCheckForRelativeNamespaces()
1361 while (ns != NULL) { in xmlC14NCheckForRelativeNamespaces()
1362 if (xmlStrlen(ns->href) > 0) { in xmlC14NCheckForRelativeNamespaces()
1365 uri = xmlParseURI((const char *) ns->href); in xmlC14NCheckForRelativeNamespaces()
1384 ns = ns->next; in xmlC14NCheckForRelativeNamespaces()
1450 if ((cur->ns != NULL) && (xmlStrlen(cur->ns->prefix) > 0)) { in xmlC14NProcessElementNode()
1452 (const char *) cur->ns->prefix); in xmlC14NProcessElementNode()
1490 if ((cur->ns != NULL) && (xmlStrlen(cur->ns->prefix) > 0)) { in xmlC14NProcessElementNode()
1492 (const char *) cur->ns->prefix); in xmlC14NProcessElementNode()