Diff for /Amaya/amaya/styleparser.c between versions 1.392 and 1.393

version 1.392, 2007/10/23 14:16:17 version 1.393, 2007/11/23 16:50:41
Line 7142  static char *ParseGenericSelector (char Line 7142  static char *ParseGenericSelector (char
                       if (ctxt->schema == NULL && att != 0)                        if (ctxt->schema == NULL && att != 0)
                         ctxt->schema = TtaGetDocumentSSchema (doc);                          ctxt->schema = TtaGetDocumentSSchema (doc);
                     }                      }
                   if (att == 0 && ctxt->schema == NULL)                    if (att == 0 && xmlType != XML_TYPE)
                     /* Attribute name not found: Search in the list of all                      /* Attribute name not found: Search in the list of all
                        schemas loaded for this document */                         schemas loaded for this document */
                     {                      {
Line 7150  static char *ParseGenericSelector (char Line 7150  static char *ParseGenericSelector (char
                       TtaGetXmlAttributeType (attrnames[j], &attrType, doc);                        TtaGetXmlAttributeType (attrnames[j], &attrType, doc);
                       att = attrType.AttrTypeNum;                        att = attrType.AttrTypeNum;
                       if (att != 0)                        if (att != 0)
                         ctxt->schema = attrType.AttrSSchema;                          {
                             ctxt->schema = attrType.AttrSSchema;
                             schemaName = TtaGetSSchemaName(attrType.AttrSSchema);
                           }
                     }                      }
                   attrType.AttrSSchema = ctxt->schema;                    attrType.AttrSSchema = ctxt->schema;
                   attrType.AttrTypeNum = att;                    attrType.AttrTypeNum = att;
                   if (i == 0 && att == 0 && ctxt->schema == NULL)                    if (i == 0 && att == 0)
                     {                      {
                       /* Not found -> search in the list of loaded schemas */  
                       attrType.AttrSSchema = NULL;  
                       TtaGetXmlAttributeType (attrnames[j], &attrType, doc);  
                       att = attrType.AttrTypeNum;  
                       if (attrType.AttrSSchema)  
                         /* the element type concerns an imported nature */  
                         schemaName = TtaGetSSchemaName(attrType.AttrSSchema);  
 #ifdef XML_GENERIC  #ifdef XML_GENERIC
                       else if (xmlType == XML_TYPE)                        if (xmlType == XML_TYPE)
                         {                          {
                           /* The attribute is not yet present in the tree */                            /* The attribute is not yet present in the tree */
                           /* Create a new global attribute */                            /* Create a new global attribute */
                           attrType.AttrSSchema = TtaGetDocumentSSchema (doc);                            attrType.AttrSSchema = TtaGetDocumentSSchema (doc);
                           TtaAppendXmlAttribute (attrnames[j], &attrType, doc);                            TtaAppendXmlAttribute (attrnames[j], &attrType, doc);
                             att = attrType.AttrTypeNum;
                         }                          }
 #endif /* XML_GENERIC */  #endif /* XML_GENERIC */
                       if (attrType.AttrSSchema == NULL)                        if (attrType.AttrSSchema == NULL)

Removed from v.1.392  
changed lines
  Added in v.1.393


Webmaster