Lines Matching refs:attr
708 xmlAttrPtr attr;
793 for(attr = cur->properties; attr != NULL; attr = attr->next) {
799 if((attr->ns != NULL) && !xmlC14NIsXmlNs(attr->ns) && xmlC14NIsVisible(ctx, attr, cur)) {
800 already_rendered = xmlExcC14NVisibleNsStackFind(ctx->ns_rendered, attr->ns, ctx);
801 xmlC14NVisibleNsStackAdd(ctx->ns_rendered, attr->ns, cur);
803 xmlListInsert(list, attr->ns);
805 if(xmlStrlen(attr->ns->prefix) == 0) {
808 } else if((attr->ns != NULL) && (xmlStrlen(attr->ns->prefix) == 0) && (xmlStrlen(attr->ns->href) == 0)) {
852 * @attr: the attr to check
862 xmlC14NIsXmlAttr(xmlAttrPtr attr)
864 return ((attr->ns != NULL) &&
865 (xmlC14NIsXmlNs(attr->ns) != 0));
871 * @attr1: the pointer tls o first attr
872 * @attr2: the pointer to second attr
920 * @attr: the pointer to attr
931 xmlC14NPrintAttrs(const xmlAttrPtr attr, xmlC14NCtxPtr ctx)
936 if ((attr == NULL) || (ctx == NULL)) {
942 if (attr->ns != NULL && xmlStrlen(attr->ns->prefix) > 0) {
944 (const char *) attr->ns->prefix);
947 xmlOutputBufferWriteString(ctx->buf, (const char *) attr->name);
950 value = xmlNodeListGetString(ctx->doc, attr->children, 1);
1002 xmlAttrPtr attr;
1015 xmlC14NErrInternal("processing xml:base attribute - can't get attr value");
1022 attr = xmlHasNsProp(cur, BAD_CAST "base", XML_XML_NAMESPACE);
1023 if(attr != NULL) {
1024 /* get attr value */
1025 tmp_str = xmlNodeListGetString(ctx->doc, attr->children, 1);
1029 xmlC14NErrInternal("processing xml:base attribute - can't get attr value");
1076 attr = xmlNewNsProp(NULL, xml_base_attr->ns, BAD_CAST "base", res);
1077 if(attr == NULL) {
1086 return (attr);
1125 xmlAttrPtr attr;
1164 attr = cur->properties;
1165 while (attr != NULL) {
1167 if (xmlC14NIsVisible(ctx, attr, cur)) {
1168 xmlListInsert(list, attr);
1170 attr = attr->next;
1187 attr = tmp->properties;
1188 while (attr != NULL) {
1189 if (xmlC14NIsXmlAttr(attr) != 0) {
1190 if (xmlListSearch(list, attr) == NULL) {
1191 xmlListInsert(list, attr);
1194 attr = attr->next;
1210 attr = cur->properties;
1211 while (attr != NULL) {
1213 if (xmlC14NIsVisible(ctx, attr, cur)) {
1214 xmlListInsert(list, attr);
1216 attr = attr->next;
1253 attr = cur->properties;
1254 while (attr != NULL) {
1256 if ((!parent_visible) || (xmlC14NIsXmlAttr(attr) == 0)) {
1258 if (xmlC14NIsVisible(ctx, attr, cur)) {
1259 xmlListInsert(list, attr);
1265 if((!matched) && (xml_lang_attr == NULL) && xmlStrEqual(attr->name, BAD_CAST "lang")) {
1266 xml_lang_attr = attr;
1269 if((!matched) && (xml_space_attr == NULL) && xmlStrEqual(attr->name, BAD_CAST "space")) {
1270 xml_space_attr = attr;
1274 /* check for base attr */
1275 if((!matched) && (xml_base_attr == NULL) && xmlStrEqual(attr->name, BAD_CAST "base")) {
1276 xml_base_attr = attr;
1281 if((!matched) && xmlC14NIsVisible(ctx, attr, cur)) {
1282 xmlListInsert(list, attr);
1287 attr = attr->next;
1317 /* note that we MUST delete returned attr node ourselves! */