• Home
  • Raw
  • Download

Lines Matching refs:ns

79                                                  xmlNsPtr ns,
87 xmlNsPtr ns);
89 xmlNsPtr ns,
261 xmlNs ns; in xmlC14NIsNodeInNodeset() local
263 memcpy(&ns, node, sizeof(ns)); in xmlC14NIsNodeInNodeset()
267 ns.next = (xmlNsPtr)parent->parent; in xmlC14NIsNodeInNodeset()
269 ns.next = (xmlNsPtr)parent; in xmlC14NIsNodeInNodeset()
276 return(xmlXPathNodeSetContains(nodes, (xmlNodePtr)&ns)); in xmlC14NIsNodeInNodeset()
315 xmlC14NVisibleNsStackAdd(xmlC14NVisibleNsStackPtr cur, xmlNsPtr ns, xmlNodePtr node) { in xmlC14NVisibleNsStackAdd() argument
354 cur->nsTab[cur->nsCurEnd] = ns; in xmlC14NVisibleNsStackAdd()
414 xmlC14NVisibleNsStackFind(xmlC14NVisibleNsStackPtr cur, xmlNsPtr ns) in xmlC14NVisibleNsStackFind() argument
430 prefix = ((ns == NULL) || (ns->prefix == NULL)) ? BAD_CAST "" : ns->prefix; in xmlC14NVisibleNsStackFind()
431 href = ((ns == NULL) || (ns->href == NULL)) ? BAD_CAST "" : ns->href; in xmlC14NVisibleNsStackFind()
448 xmlExcC14NVisibleNsStackFind(xmlC14NVisibleNsStackPtr cur, xmlNsPtr ns, xmlC14NCtxPtr ctx) { in xmlExcC14NVisibleNsStackFind() argument
463 prefix = ((ns == NULL) || (ns->prefix == NULL)) ? BAD_CAST "" : ns->prefix; in xmlExcC14NVisibleNsStackFind()
464 href = ((ns == NULL) || (ns->href == NULL)) ? BAD_CAST "" : ns->href; in xmlExcC14NVisibleNsStackFind()
499 xmlC14NIsXmlNs(xmlNsPtr ns) in xmlC14NIsXmlNs() argument
501 return ((ns != NULL) && in xmlC14NIsXmlNs()
502 (xmlStrEqual(ns->prefix, BAD_CAST "xml")) && in xmlC14NIsXmlNs()
503 (xmlStrEqual(ns->href, XML_XML_NAMESPACE))); in xmlC14NIsXmlNs()
542 xmlC14NPrintNamespaces(const xmlNsPtr ns, xmlC14NCtxPtr ctx) in xmlC14NPrintNamespaces() argument
545 if ((ns == NULL) || (ctx == NULL)) { in xmlC14NPrintNamespaces()
550 if (ns->prefix != NULL) { in xmlC14NPrintNamespaces()
552 xmlOutputBufferWriteString(ctx->buf, (const char *) ns->prefix); in xmlC14NPrintNamespaces()
557 if(ns->href != NULL) { in xmlC14NPrintNamespaces()
558 xmlBufWriteQuotedString(ctx->buf->buffer, ns->href); in xmlC14NPrintNamespaces()
566 xmlC14NPrintNamespacesWalker(const void *ns, void *ctx) { in xmlC14NPrintNamespacesWalker() argument
567 return xmlC14NPrintNamespaces((const xmlNsPtr) ns, (xmlC14NCtxPtr) ctx); in xmlC14NPrintNamespacesWalker()
613 xmlNsPtr ns, tmp; in xmlC14NProcessNamespacesAxis() local
634 for(ns = n->nsDef; ns != NULL; ns = ns->next) { in xmlC14NProcessNamespacesAxis()
635 tmp = xmlSearchNs(cur->doc, cur, ns->prefix); in xmlC14NProcessNamespacesAxis()
637 if((tmp == ns) && !xmlC14NIsXmlNs(ns) && xmlC14NIsVisible(ctx, ns, cur)) { in xmlC14NProcessNamespacesAxis()
638 already_rendered = xmlC14NVisibleNsStackFind(ctx->ns_rendered, ns); in xmlC14NProcessNamespacesAxis()
640 xmlC14NVisibleNsStackAdd(ctx->ns_rendered, ns, cur); in xmlC14NProcessNamespacesAxis()
643 xmlListInsert(list, ns); in xmlC14NProcessNamespacesAxis()
645 if(xmlStrlen(ns->prefix) == 0) { in xmlC14NProcessNamespacesAxis()
717 xmlNsPtr ns; in xmlExcC14NProcessNamespacesAxis() local
765 ns = xmlSearchNs(cur->doc, cur, prefix); in xmlExcC14NProcessNamespacesAxis()
766 if((ns != NULL) && !xmlC14NIsXmlNs(ns) && xmlC14NIsVisible(ctx, ns, cur)) { in xmlExcC14NProcessNamespacesAxis()
767 already_rendered = xmlC14NVisibleNsStackFind(ctx->ns_rendered, ns); in xmlExcC14NProcessNamespacesAxis()
769 xmlC14NVisibleNsStackAdd(ctx->ns_rendered, ns, cur); in xmlExcC14NProcessNamespacesAxis()
772 xmlListInsert(list, ns); in xmlExcC14NProcessNamespacesAxis()
774 if(xmlStrlen(ns->prefix) == 0) { in xmlExcC14NProcessNamespacesAxis()
782 if(cur->ns != NULL) { in xmlExcC14NProcessNamespacesAxis()
783 ns = cur->ns; in xmlExcC14NProcessNamespacesAxis()
785 ns = xmlSearchNs(cur->doc, cur, NULL); in xmlExcC14NProcessNamespacesAxis()
788 if((ns != NULL) && !xmlC14NIsXmlNs(ns)) { in xmlExcC14NProcessNamespacesAxis()
789 if(visible && xmlC14NIsVisible(ctx, ns, cur)) { in xmlExcC14NProcessNamespacesAxis()
790 if(!xmlExcC14NVisibleNsStackFind(ctx->ns_rendered, ns, ctx)) { in xmlExcC14NProcessNamespacesAxis()
791 xmlListInsert(list, ns); in xmlExcC14NProcessNamespacesAxis()
795 xmlC14NVisibleNsStackAdd(ctx->ns_rendered, ns, cur); in xmlExcC14NProcessNamespacesAxis()
797 if(xmlStrlen(ns->prefix) == 0) { in xmlExcC14NProcessNamespacesAxis()
810 if((attr->ns != NULL) && !xmlC14NIsXmlNs(attr->ns) && xmlC14NIsVisible(ctx, attr, cur)) { in xmlExcC14NProcessNamespacesAxis()
811 already_rendered = xmlExcC14NVisibleNsStackFind(ctx->ns_rendered, attr->ns, ctx); in xmlExcC14NProcessNamespacesAxis()
812 xmlC14NVisibleNsStackAdd(ctx->ns_rendered, attr->ns, cur); in xmlExcC14NProcessNamespacesAxis()
814 xmlListInsert(list, attr->ns); in xmlExcC14NProcessNamespacesAxis()
816 if(xmlStrlen(attr->ns->prefix) == 0) { in xmlExcC14NProcessNamespacesAxis()
819 …} else if((attr->ns != NULL) && (xmlStrlen(attr->ns->prefix) == 0) && (xmlStrlen(attr->ns->href) =… in xmlExcC14NProcessNamespacesAxis()
875 return ((attr->ns != NULL) && in xmlC14NIsXmlAttr()
876 (xmlC14NIsXmlNs(attr->ns) != 0)); in xmlC14NIsXmlAttr()
905 if (attr1->ns == attr2->ns) { in xmlC14NAttrsCompare()
914 if (attr1->ns == NULL) in xmlC14NAttrsCompare()
916 if (attr2->ns == NULL) in xmlC14NAttrsCompare()
918 if (attr1->ns->prefix == NULL) in xmlC14NAttrsCompare()
920 if (attr2->ns->prefix == NULL) in xmlC14NAttrsCompare()
923 ret = xmlStrcmp(attr1->ns->href, attr2->ns->href); in xmlC14NAttrsCompare()
957 if (attr->ns != NULL && xmlStrlen(attr->ns->prefix) > 0) { in xmlC14NPrintAttrs()
959 (const char *) attr->ns->prefix); in xmlC14NPrintAttrs()
990 …4NFindHiddenParentAttr(xmlC14NCtxPtr ctx, xmlNodePtr cur, const xmlChar * name, const xmlChar * ns) in xmlC14NFindHiddenParentAttr() argument
994 res = xmlHasNsProp(cur, name, ns); in xmlC14NFindHiddenParentAttr()
1091 attr = xmlNewNsProp(NULL, xml_base_attr->ns, BAD_CAST "base", res); in xmlC14NFixupBaseAttr()
1368 xmlNsPtr ns; in xmlC14NCheckForRelativeNamespaces() local
1375 ns = cur->nsDef; in xmlC14NCheckForRelativeNamespaces()
1376 while (ns != NULL) { in xmlC14NCheckForRelativeNamespaces()
1377 if (xmlStrlen(ns->href) > 0) { in xmlC14NCheckForRelativeNamespaces()
1380 uri = xmlParseURI((const char *) ns->href); in xmlC14NCheckForRelativeNamespaces()
1392 ns = ns->next; in xmlC14NCheckForRelativeNamespaces()
1458 if ((cur->ns != NULL) && (xmlStrlen(cur->ns->prefix) > 0)) { in xmlC14NProcessElementNode()
1460 (const char *) cur->ns->prefix); in xmlC14NProcessElementNode()
1498 if ((cur->ns != NULL) && (xmlStrlen(cur->ns->prefix) > 0)) { in xmlC14NProcessElementNode()
1500 (const char *) cur->ns->prefix); in xmlC14NProcessElementNode()