Diff for /Amaya/amaya/styleparser.c between versions 1.153 and 1.154

version 1.153, 2002/10/07 08:20:31 version 1.154, 2002/10/07 09:15:34
Line 4315  static char *ParseGenericSelector (char Line 4315  static char *ParseGenericSelector (char
                   TtaGetXmlElementType (names[i], &elType, NULL, doc);                    TtaGetXmlElementType (names[i], &elType, NULL, doc);
                   if (elType.ElSSchema)                    if (elType.ElSSchema)
                     {                      {
                       /* the element type concerns an imprted nature */                        /* the element type concerns an imported nature */
                       schemaName = TtaGetSSchemaName(elType.ElSSchema);                        schemaName = TtaGetSSchemaName(elType.ElSSchema);
                       if (!strcmp (schemaName, "HTML"))                        if (!strcmp (schemaName, "HTML"))
                         xmlType = XHTML_TYPE;                          xmlType = XHTML_TYPE;
Line 4393  static char *ParseGenericSelector (char Line 4393  static char *ParseGenericSelector (char
                 /* increment the number of ancestor levels */                  /* increment the number of ancestor levels */
                 ctxt->names_nb[j]++;                  ctxt->names_nb[j]++;
             }              }
   #ifdef XML_GENERIC
             else if (xmlType == XML_TYPE)
               {
                 /* Creation of a new element type in the main schema */
                 elType.ElSSchema = TtaGetDocumentSSchema (doc);
                 TtaAppendXmlElement (names[i], &elType, &mappedName, doc);
                 if (elType.ElTypeNum != 0)
                   {
                     /* look at the current context to see if the type is already
                        stored */
                     j = 1;
                     while (j < k && ctxt->name[j] != elType.ElTypeNum)
                       j++;
                     if (j == k)
                       {
                         ctxt->name[j] = elType.ElTypeNum;
                         if (j != 0)
                           ctxt->names_nb[j] = 1;
                       }
                     else
                       /* increment the number of ancestor levels */
                       ctxt->names_nb[j]++;
                   }
               }
   #endif /* XML_GENERIC */
           else            else
             j = k;              j = k;
         }          }

Removed from v.1.153  
changed lines
  Added in v.1.154


Webmaster