Diff for /Amaya/amaya/styleparser.c between versions 1.219 and 1.220

version 1.219, 2003/08/27 10:46:16 version 1.220, 2003/08/27 11:06:04
Line 5043  static char *ParseGenericSelector (char Line 5043  static char *ParseGenericSelector (char
       if (names[i])        if (names[i])
         {          {
           /* get the element type of this name in the current document */            /* get the element type of this name in the current document */
           MapXMLElementType (xmlType, names[i], &elType, &mappedName, &c, &level, doc);            if (xmlType == XML_TYPE)
               /* it's a generic XML document */
               {
                 elType.ElSSchema = TtaGetDocumentSSchema (doc);
                 TtaGetXmlElementType (names[i], &elType, &mappedName, doc);
                 if (!elType.ElTypeNum)
                   elType.ElSSchema = NULL;
               }
             else
               MapXMLElementType (xmlType, names[i], &elType, &mappedName, &c,
                                  &level, doc);
           if (i == 0)            if (i == 0)
             {              {
               if (elType.ElSSchema == NULL)                if (elType.ElSSchema == NULL)
Line 5235  static char *ParseGenericSelector (char Line 5245  static char *ParseGenericSelector (char
       if (attrs[i])        if (attrs[i])
         {          {
           /* it's an attribute */            /* it's an attribute */
           MapXMLAttribute (xmlType, attrs[i], names[i], &level, doc, &att);            if (xmlType == XML_TYPE)
               {
                 attrType.AttrSSchema = TtaGetDocumentSSchema (doc);
                 TtaGetXmlAttributeType (attrs[i], &attrType, doc);
                 att = attrType.AttrTypeNum;
               }
             else
               MapXMLAttribute (xmlType, attrs[i], names[i], &level, doc, &att);
           if (att == DummyAttribute && !strcmp (schemaName, "HTML"))            if (att == DummyAttribute && !strcmp (schemaName, "HTML"))
             /* it's the "type" attribute for an "input" element. In the tree              /* it's the "type" attribute for an "input" element. In the tree
                it's represented by the element type, not by an attribute */                 it's represented by the element type, not by an attribute */
Line 5285  static char *ParseGenericSelector (char Line 5302  static char *ParseGenericSelector (char
           else            else
             xmlType = XML_TYPE;              xmlType = XML_TYPE;
           kind = TtaGetAttributeKind (attrType);            kind = TtaGetAttributeKind (attrType);
           if (kind != 1 && attrvals[i])            if (kind == 0 && attrvals[i])
             {              {
               /* enumerated value */                /* enumerated value */
               MapXMLAttributeValue (xmlType, attrvals[i], attrType, &kind);                MapXMLAttributeValue (xmlType, attrvals[i], attrType, &kind);

Removed from v.1.219  
changed lines
  Added in v.1.220


Webmaster