Lines Matching refs:ns

158 	const xmlChar *ns  in dom_xml_local_prefix_map_add()  argument
162 zend_hash_str_add_ptr(&map->ht, (const char *) prefix, prefix_len, (void *) ns); in dom_xml_local_prefix_map_add()
179 const xmlChar *ns in dom_xml_local_prefix_map_conflicts() argument
186 return !dom_xml_str_equals_treat_nulls_as_empty(result, ns); in dom_xml_local_prefix_map_conflicts()
203 const xmlChar *ns, in dom_xml_ns_prefix_map_add() argument
210 if (ns == NULL) { in dom_xml_ns_prefix_map_add()
211 ns = BAD_CAST ""; in dom_xml_ns_prefix_map_add()
227 HashTable *list = zend_hash_str_find_ptr(map->ht, (const char *) ns, ns_length); in dom_xml_ns_prefix_map_add()
234 zend_hash_str_add_new_ptr(map->ht, (const char *) ns, ns_length, list); in dom_xml_ns_prefix_map_add()
238 zend_hash_str_update_ptr(map->ht, (const char *) ns, ns_length, list); in dom_xml_ns_prefix_map_add()
252 …HashTable *dom_get_candidates_list(dom_xml_ns_prefix_map *map, const xmlChar *ns, size_t ns_length) in dom_get_candidates_list() argument
259 return zend_hash_str_find_ptr(map->ht, (const char *) ns, ns_length); in dom_get_candidates_list()
286 const xmlChar *ns, in dom_prefix_found_in_ns_prefix_map() argument
290 ZEND_ASSERT(ns != NULL); in dom_prefix_found_in_ns_prefix_map()
291 HashTable *list = dom_get_candidates_list(map, ns, ns_length); in dom_prefix_found_in_ns_prefix_map()
325 if (attr->ns->prefix == NULL) { in dom_recording_the_namespace_information()
381 const xmlChar *ns, in dom_retrieve_a_preferred_prefix_string() argument
387 if (ns == NULL) { in dom_retrieve_a_preferred_prefix_string()
388 ns = BAD_CAST ""; in dom_retrieve_a_preferred_prefix_string()
393 HashTable *list = dom_get_candidates_list(namespace_prefix_map, ns, ns_length); in dom_retrieve_a_preferred_prefix_string()
408 …om_xml_local_prefix_map_conflicts(local_prefixes_map, prefix, strlen((const char *) prefix), ns)) { in dom_retrieve_a_preferred_prefix_string()
566 if (attr->ns != NULL && attr->ns->prefix != NULL) { in dom_xml_serialize_attribute_node()
567 TRY(xmlOutputBufferWriteString(out, (const char *) attr->ns->prefix)); in dom_xml_serialize_attribute_node()
637 const xmlChar *attribute_namespace = attr->ns == NULL ? NULL : attr->ns->href; in dom_xml_serialize_attributes()
649 attr->ns->prefix, in dom_xml_serialize_attributes()
664 if (ignore_namespace_definition_attribute && attr->ns->prefix == NULL) { in dom_xml_serialize_attributes()
666 …if (!dom_xml_str_equals_treat_nulls_as_empty(element->ns == NULL ? NULL : element->ns->href, attr_… in dom_xml_serialize_attributes()
671 if (attr->ns->prefix != NULL) { in dom_xml_serialize_attributes()
690 if (attr->ns->prefix != NULL && strcmp((const char *) attr->ns->prefix, "xmlns") == 0) { in dom_xml_serialize_attributes()
697 if (attr->ns->prefix == NULL in dom_xml_serialize_attributes()
698 …ml_local_prefix_map_contains(local_prefixes_map, attr->ns->prefix, strlen((const char *) attr->ns-… in dom_xml_serialize_attributes()
709 candidate_prefix = attr->ns->prefix; in dom_xml_serialize_attributes()
825 const xmlChar *const ns = element->ns == NULL ? NULL : element->ns->href; in dom_xml_serialize_element_node() local
828 if (dom_xml_str_equals_treat_nulls_as_nulls(inherited_ns, ns)) { in dom_xml_serialize_element_node()
851 const xmlChar *prefix = element->ns == NULL ? NULL : element->ns->prefix; in dom_xml_serialize_element_node()
856 if (prefix == NULL && dom_xml_str_equals_treat_nulls_as_empty(ns, local_default_namespace)) { in dom_xml_serialize_element_node()
859 size_t ns_length = ns == NULL ? 0 : strlen((const char *) ns); in dom_xml_serialize_element_node()
860 …candidate_prefix = dom_retrieve_a_preferred_prefix_string(&map, &local_prefixes_map, prefix, ns, n… in dom_xml_serialize_element_node()
892 size_t ns_length = ns == NULL ? 0 : strlen((const char *) ns); in dom_xml_serialize_element_node()
897 prefix = dom_xml_generate_a_prefix(&map, &local_prefixes_map, ns, ns_length, prefix_index); in dom_xml_serialize_element_node()
900 dom_xml_ns_prefix_map_add(&map, prefix, false, ns, ns_length); in dom_xml_serialize_element_node()
902 dom_xml_local_prefix_map_add(&local_prefixes_map, prefix, prefix_length, ns); in dom_xml_serialize_element_node()
916 TRY_OR_CLEANUP(dom_xml_common_text_serialization(out, (const char *) ns, true)); in dom_xml_serialize_element_node()
930 …fault_namespace == NULL || !dom_xml_str_equals_treat_nulls_as_empty(local_default_namespace, ns)) { in dom_xml_serialize_element_node()
938 inherited_ns = ns; in dom_xml_serialize_element_node()
945 TRY_OR_CLEANUP(dom_xml_common_text_serialization(out, (const char *) ns, true)); in dom_xml_serialize_element_node()
951 inherited_ns = ns; in dom_xml_serialize_element_node()