• Login
  • Help/Guide
  • About Trac
  • Preferences
  • Wiki
  • Timeline
  • Roadmap
  • Browse Source
  • View Tickets
  • Search

Context Navigation

  • ← Previous Changeset
  • Next Changeset →

Changeset 188

Show
Ignore:
Timestamp:
06/03/08 13:30:50 (3 months ago)
Author:
callan
Message:

Fix regression introduced by r179 relating to 2003FC top level types with odd schema definitions

Files:
1 modified

  • Xml/xsd-fu/trunk/fu.py (modified) (2 diffs)

Legend:

Unmodified
Added
Removed
  • Xml/xsd-fu/trunk/fu.py

    r179 r188  
    379379                """ 
    380380                e = element 
     381                e_name = e.getName() 
     382                e_type = e.getType() 
    381383                if not e.isExplicitDefine() \ 
    382                    and (e.name not in EXPLICIT_DEFINE_OVERRIDE or not e.topLevel): 
     384                   and (e_name not in EXPLICIT_DEFINE_OVERRIDE or not e.topLevel): 
    383385                        logging.info("Element %s.%s not an explicit define, skipping." % (parent, e)) 
    384386                        return 
    … …  
    386388                        logging.error("Element %s.%s extension chain contains mixed and non-mixed content, skipping." % (parent, e)) 
    387389                        return 
    388                 if e.getType() != e.getName(): 
    389                     logging.info("Element %s.%s is not a concrete type, skipping." % (parent, e)) 
     390                if e_type != e_name and e_name not in EXPLICIT_DEFINE_OVERRIDE: 
     391                    logging.info("Element %s.%s is not a concrete type (%s != %s), skipping." % (parent, e, e_type, e_name)) 
    390392                    return 
    391393                obj = OMEModelObject(e, self) 

Download in other formats:

  • Unified Diff
  • Zip Archive

Trac Powered

Powered by Trac 0.11
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/