Diff for /Amaya/amaya/fetchXMLname.c between versions 1.90 and 1.91

version 1.90, 2008/01/09 16:24:02 version 1.91, 2008/03/14 16:20:19
Line 485  int MapXMLAttribute (int XMLtype, char * Line 485  int MapXMLAttribute (int XMLtype, char *
 {  {
   AttributeMapping   *ptr;    AttributeMapping   *ptr;
   char                c;    char                c;
   int                 i, profile;    int                 i, profile, extraprofile;
   ThotBool            xmlformat;    ThotBool            xmlformat;
   
   /* Initialization */    /* Initialization */
Line 532  int MapXMLAttribute (int XMLtype, char * Line 532  int MapXMLAttribute (int XMLtype, char *
     c = attrName[0];      c = attrName[0];
   
   profile = TtaGetDocumentProfile (doc);    profile = TtaGetDocumentProfile (doc);
     extraprofile = TtaGetDocumentExtraProfile (doc);
   
   if (profile == L_Annot)    if (profile == L_Annot)
     profile = L_Other;      profile = L_Other;
   /* look for the first concerned entry in the table */    /* look for the first concerned entry in the table */
Line 549  int MapXMLAttribute (int XMLtype, char * Line 551  int MapXMLAttribute (int XMLtype, char *
                 (ptr[i].XMLelement[0] != EOS && elementName &&                  (ptr[i].XMLelement[0] != EOS && elementName &&
                  strcmp (ptr[i].XMLelement, elementName))))                   strcmp (ptr[i].XMLelement, elementName))))
         i++;          i++;
       else if (profile != L_Other && !(ptr[i].Level & profile))        else if (profile != L_Other && extraprofile == 0 && !(ptr[i].Level & profile))
           {
             *checkProfile = FALSE;
             i++;
           }
         else if ((ptr[i].Level == L_RDFaValue) && (extraprofile != L_RDFa))
         {          {
           *checkProfile = FALSE;            *checkProfile = FALSE;
           i++;            i++;
         }          }
       else        else
         {          {
           /* Special case for the 'name' attribute for             /* Special case for the 'name' attribute for elements 'a' and 'map' in xhtml1.1 profile */
              elements 'a' and 'map' in xhtml1.1 profile */  
           if ((profile == L_Xhtml11) &&            if ((profile == L_Xhtml11) &&
               !strcmp (attrName, "name") && elementName &&                !strcmp (attrName, "name") && elementName &&
               (!strcmp (elementName, "a") || !strcmp (elementName, "map")))                (!strcmp (elementName, "a") || !strcmp (elementName, "map")))

Removed from v.1.90  
changed lines
  Added in v.1.91


Webmaster