Lines Matching refs:attr

711     xmlAttrPtr attr;
796 for(attr = cur->properties; attr != NULL; attr = attr->next) {
802 if((attr->ns != NULL) && !xmlC14NIsXmlNs(attr->ns) && xmlC14NIsVisible(ctx, attr, cur)) {
803 already_rendered = xmlExcC14NVisibleNsStackFind(ctx->ns_rendered, attr->ns, ctx);
804 xmlC14NVisibleNsStackAdd(ctx->ns_rendered, attr->ns, cur);
806 xmlListInsert(list, attr->ns);
808 if(xmlStrlen(attr->ns->prefix) == 0) {
811 } else if((attr->ns != NULL) && (xmlStrlen(attr->ns->prefix) == 0) && (xmlStrlen(attr->ns->href) == 0)) {
855 * @attr: the attr to check
865 xmlC14NIsXmlAttr(xmlAttrPtr attr)
867 return ((attr->ns != NULL) &&
868 (xmlC14NIsXmlNs(attr->ns) != 0));
874 * @attr1: the pointer tls o first attr
875 * @attr2: the pointer to second attr
923 * @attr: the pointer to attr
934 xmlC14NPrintAttrs(const xmlAttrPtr attr, xmlC14NCtxPtr ctx)
939 if ((attr == NULL) || (ctx == NULL)) {
945 if (attr->ns != NULL && xmlStrlen(attr->ns->prefix) > 0) {
947 (const char *) attr->ns->prefix);
950 xmlOutputBufferWriteString(ctx->buf, (const char *) attr->name);
953 value = xmlNodeListGetString(ctx->doc, attr->children, 1);
1005 xmlAttrPtr attr;
1018 xmlC14NErrInternal("processing xml:base attribute - can't get attr value");
1025 attr = xmlHasNsProp(cur, BAD_CAST "base", XML_XML_NAMESPACE);
1026 if(attr != NULL) {
1027 /* get attr value */
1028 tmp_str = xmlNodeListGetString(ctx->doc, attr->children, 1);
1032 xmlC14NErrInternal("processing xml:base attribute - can't get attr value");
1079 attr = xmlNewNsProp(NULL, xml_base_attr->ns, BAD_CAST "base", res);
1080 if(attr == NULL) {
1089 return (attr);
1128 xmlAttrPtr attr;
1167 attr = cur->properties;
1168 while (attr != NULL) {
1170 if (xmlC14NIsVisible(ctx, attr, cur)) {
1171 xmlListInsert(list, attr);
1173 attr = attr->next;
1190 attr = tmp->properties;
1191 while (attr != NULL) {
1192 if (xmlC14NIsXmlAttr(attr) != 0) {
1193 if (xmlListSearch(list, attr) == NULL) {
1194 xmlListInsert(list, attr);
1197 attr = attr->next;
1213 attr = cur->properties;
1214 while (attr != NULL) {
1216 if (xmlC14NIsVisible(ctx, attr, cur)) {
1217 xmlListInsert(list, attr);
1219 attr = attr->next;
1256 attr = cur->properties;
1257 while (attr != NULL) {
1259 if ((!parent_visible) || (xmlC14NIsXmlAttr(attr) == 0)) {
1261 if (xmlC14NIsVisible(ctx, attr, cur)) {
1262 xmlListInsert(list, attr);
1268 if((!matched) && (xml_lang_attr == NULL) && xmlStrEqual(attr->name, BAD_CAST "lang")) {
1269 xml_lang_attr = attr;
1272 if((!matched) && (xml_space_attr == NULL) && xmlStrEqual(attr->name, BAD_CAST "space")) {
1273 xml_space_attr = attr;
1277 /* check for base attr */
1278 if((!matched) && (xml_base_attr == NULL) && xmlStrEqual(attr->name, BAD_CAST "base")) {
1279 xml_base_attr = attr;
1284 if((!matched) && xmlC14NIsVisible(ctx, attr, cur)) {
1285 xmlListInsert(list, attr);
1290 attr = attr->next;
1320 /* note that we MUST delete returned attr node ourselves! */