• Home
  • Raw
  • Download

Lines Matching refs:ns

79                                                  xmlNsPtr ns,
87 xmlNsPtr ns);
89 xmlNsPtr ns,
260 xmlNs ns; in xmlC14NIsNodeInNodeset() local
262 memcpy(&ns, node, sizeof(ns)); in xmlC14NIsNodeInNodeset()
266 ns.next = (xmlNsPtr)parent->parent; in xmlC14NIsNodeInNodeset()
268 ns.next = (xmlNsPtr)parent; in xmlC14NIsNodeInNodeset()
275 return(xmlXPathNodeSetContains(nodes, (xmlNodePtr)&ns)); in xmlC14NIsNodeInNodeset()
314 xmlC14NVisibleNsStackAdd(xmlC14NVisibleNsStackPtr cur, xmlNsPtr ns, xmlNodePtr node) { in xmlC14NVisibleNsStackAdd() argument
353 cur->nsTab[cur->nsCurEnd] = ns; in xmlC14NVisibleNsStackAdd()
413 xmlC14NVisibleNsStackFind(xmlC14NVisibleNsStackPtr cur, xmlNsPtr ns) in xmlC14NVisibleNsStackFind() argument
429 prefix = ((ns == NULL) || (ns->prefix == NULL)) ? BAD_CAST "" : ns->prefix; in xmlC14NVisibleNsStackFind()
430 href = ((ns == NULL) || (ns->href == NULL)) ? BAD_CAST "" : ns->href; in xmlC14NVisibleNsStackFind()
447 xmlExcC14NVisibleNsStackFind(xmlC14NVisibleNsStackPtr cur, xmlNsPtr ns, xmlC14NCtxPtr ctx) { in xmlExcC14NVisibleNsStackFind() argument
462 prefix = ((ns == NULL) || (ns->prefix == NULL)) ? BAD_CAST "" : ns->prefix; in xmlExcC14NVisibleNsStackFind()
463 href = ((ns == NULL) || (ns->href == NULL)) ? BAD_CAST "" : ns->href; in xmlExcC14NVisibleNsStackFind()
498 xmlC14NIsXmlNs(xmlNsPtr ns) in xmlC14NIsXmlNs() argument
500 return ((ns != NULL) && in xmlC14NIsXmlNs()
501 (xmlStrEqual(ns->prefix, BAD_CAST "xml")) && in xmlC14NIsXmlNs()
502 (xmlStrEqual(ns->href, XML_XML_NAMESPACE))); in xmlC14NIsXmlNs()
539 xmlC14NPrintNamespaces(const xmlNsPtr ns, xmlC14NCtxPtr ctx) in xmlC14NPrintNamespaces() argument
542 if ((ns == NULL) || (ctx == NULL)) { in xmlC14NPrintNamespaces()
547 if (ns->prefix != NULL) { in xmlC14NPrintNamespaces()
549 xmlOutputBufferWriteString(ctx->buf, (const char *) ns->prefix); in xmlC14NPrintNamespaces()
554 if(ns->href != NULL) { in xmlC14NPrintNamespaces()
555 xmlBufWriteQuotedString(ctx->buf->buffer, ns->href); in xmlC14NPrintNamespaces()
605 xmlNsPtr ns, tmp; in xmlC14NProcessNamespacesAxis() local
626 for(ns = n->nsDef; ns != NULL; ns = ns->next) { in xmlC14NProcessNamespacesAxis()
627 tmp = xmlSearchNs(cur->doc, cur, ns->prefix); in xmlC14NProcessNamespacesAxis()
629 if((tmp == ns) && !xmlC14NIsXmlNs(ns) && xmlC14NIsVisible(ctx, ns, cur)) { in xmlC14NProcessNamespacesAxis()
630 already_rendered = xmlC14NVisibleNsStackFind(ctx->ns_rendered, ns); in xmlC14NProcessNamespacesAxis()
632 xmlC14NVisibleNsStackAdd(ctx->ns_rendered, ns, cur); in xmlC14NProcessNamespacesAxis()
635 xmlListInsert(list, ns); in xmlC14NProcessNamespacesAxis()
637 if(xmlStrlen(ns->prefix) == 0) { in xmlC14NProcessNamespacesAxis()
709 xmlNsPtr ns; in xmlExcC14NProcessNamespacesAxis() local
757 ns = xmlSearchNs(cur->doc, cur, prefix); in xmlExcC14NProcessNamespacesAxis()
758 if((ns != NULL) && !xmlC14NIsXmlNs(ns) && xmlC14NIsVisible(ctx, ns, cur)) { in xmlExcC14NProcessNamespacesAxis()
759 already_rendered = xmlC14NVisibleNsStackFind(ctx->ns_rendered, ns); in xmlExcC14NProcessNamespacesAxis()
761 xmlC14NVisibleNsStackAdd(ctx->ns_rendered, ns, cur); in xmlExcC14NProcessNamespacesAxis()
764 xmlListInsert(list, ns); in xmlExcC14NProcessNamespacesAxis()
766 if(xmlStrlen(ns->prefix) == 0) { in xmlExcC14NProcessNamespacesAxis()
774 if(cur->ns != NULL) { in xmlExcC14NProcessNamespacesAxis()
775 ns = cur->ns; in xmlExcC14NProcessNamespacesAxis()
777 ns = xmlSearchNs(cur->doc, cur, NULL); in xmlExcC14NProcessNamespacesAxis()
780 if((ns != NULL) && !xmlC14NIsXmlNs(ns)) { in xmlExcC14NProcessNamespacesAxis()
781 if(visible && xmlC14NIsVisible(ctx, ns, cur)) { in xmlExcC14NProcessNamespacesAxis()
782 if(!xmlExcC14NVisibleNsStackFind(ctx->ns_rendered, ns, ctx)) { in xmlExcC14NProcessNamespacesAxis()
783 xmlListInsert(list, ns); in xmlExcC14NProcessNamespacesAxis()
787 xmlC14NVisibleNsStackAdd(ctx->ns_rendered, ns, cur); in xmlExcC14NProcessNamespacesAxis()
789 if(xmlStrlen(ns->prefix) == 0) { in xmlExcC14NProcessNamespacesAxis()
802 if((attr->ns != NULL) && !xmlC14NIsXmlNs(attr->ns) && xmlC14NIsVisible(ctx, attr, cur)) { in xmlExcC14NProcessNamespacesAxis()
803 already_rendered = xmlExcC14NVisibleNsStackFind(ctx->ns_rendered, attr->ns, ctx); in xmlExcC14NProcessNamespacesAxis()
804 xmlC14NVisibleNsStackAdd(ctx->ns_rendered, attr->ns, cur); in xmlExcC14NProcessNamespacesAxis()
806 xmlListInsert(list, attr->ns); in xmlExcC14NProcessNamespacesAxis()
808 if(xmlStrlen(attr->ns->prefix) == 0) { in xmlExcC14NProcessNamespacesAxis()
811 …} else if((attr->ns != NULL) && (xmlStrlen(attr->ns->prefix) == 0) && (xmlStrlen(attr->ns->href) =… in xmlExcC14NProcessNamespacesAxis()
867 return ((attr->ns != NULL) && in xmlC14NIsXmlAttr()
868 (xmlC14NIsXmlNs(attr->ns) != 0)); in xmlC14NIsXmlAttr()
895 if (attr1->ns == attr2->ns) { in xmlC14NAttrsCompare()
904 if (attr1->ns == NULL) in xmlC14NAttrsCompare()
906 if (attr2->ns == NULL) in xmlC14NAttrsCompare()
908 if (attr1->ns->prefix == NULL) in xmlC14NAttrsCompare()
910 if (attr2->ns->prefix == NULL) in xmlC14NAttrsCompare()
913 ret = xmlStrcmp(attr1->ns->href, attr2->ns->href); in xmlC14NAttrsCompare()
945 if (attr->ns != NULL && xmlStrlen(attr->ns->prefix) > 0) { in xmlC14NPrintAttrs()
947 (const char *) attr->ns->prefix); in xmlC14NPrintAttrs()
978 …4NFindHiddenParentAttr(xmlC14NCtxPtr ctx, xmlNodePtr cur, const xmlChar * name, const xmlChar * ns) in xmlC14NFindHiddenParentAttr() argument
982 res = xmlHasNsProp(cur, name, ns); in xmlC14NFindHiddenParentAttr()
1079 attr = xmlNewNsProp(NULL, xml_base_attr->ns, BAD_CAST "base", res); in xmlC14NFixupBaseAttr()
1356 xmlNsPtr ns; in xmlC14NCheckForRelativeNamespaces() local
1363 ns = cur->nsDef; in xmlC14NCheckForRelativeNamespaces()
1364 while (ns != NULL) { in xmlC14NCheckForRelativeNamespaces()
1365 if (xmlStrlen(ns->href) > 0) { in xmlC14NCheckForRelativeNamespaces()
1368 uri = xmlParseURI((const char *) ns->href); in xmlC14NCheckForRelativeNamespaces()
1387 ns = ns->next; in xmlC14NCheckForRelativeNamespaces()
1453 if ((cur->ns != NULL) && (xmlStrlen(cur->ns->prefix) > 0)) { in xmlC14NProcessElementNode()
1455 (const char *) cur->ns->prefix); in xmlC14NProcessElementNode()
1493 if ((cur->ns != NULL) && (xmlStrlen(cur->ns->prefix) > 0)) { in xmlC14NProcessElementNode()
1495 (const char *) cur->ns->prefix); in xmlC14NProcessElementNode()