Diff for /Amaya/amaya/fetchXMLname.c between versions 1.93 and 1.94

version 1.93, 2008/03/18 08:25:24 version 1.94, 2008/03/28 18:28:28
Line 569  int MapXMLAttribute (int XMLtype, char * Line 569  int MapXMLAttribute (int XMLtype, char *
               !strcmp (attrName, "name") && elementName &&                !strcmp (attrName, "name") && elementName &&
               (!strcmp (elementName, "a") || !strcmp (elementName, "map")))                (!strcmp (elementName, "a") || !strcmp (elementName, "map")))
             *checkProfile = FALSE;              *checkProfile = FALSE;
           else            /* Special case for the attributes 'rel' and 'rev' for elements 'a' and 'link' */
             else if ((!strcmp (attrName, "rel") || !strcmp (attrName, "rev")) &&
                      (strcmp (elementName, "a") && strcmp (elementName, "link")) &&
                      (extraprofile != L_RDFa))
               *checkProfile = FALSE;
             else
             *thotType = ptr[i].ThotAttribute;              *thotType = ptr[i].ThotAttribute;
           return (i);            return (i);
         }          }
Line 632  char *GetXMLAttributeName (AttributeType Line 637  char *GetXMLAttributeName (AttributeType
                   invalid = TRUE;                    invalid = TRUE;
                 else if (doc != 0 && ptr[i].Level == L_RDFaValue && extraprofile != L_RDFa)                  else if (doc != 0 && ptr[i].Level == L_RDFaValue && extraprofile != L_RDFa)
                   invalid = TRUE;                    invalid = TRUE;
                   else if ((attrType.AttrTypeNum == HTML_ATTR_REL ||
                             attrType.AttrTypeNum == HTML_ATTR_REV) &&
                             elType.ElTypeNum != HTML_EL_Anchor &&
                             elType.ElTypeNum != HTML_EL_LINK &&
                             extraprofile != L_RDFa)
                     invalid = TRUE;
                 else                  else
                   return ptr[i].XMLattribute;                    return ptr[i].XMLattribute;
               }                }

Removed from v.1.93  
changed lines
  Added in v.1.94


Webmaster