#NEWLINE# def __init__( self , root , baseurl , options , container = None ) : #NEWLINE# #INDENT# '\n        @param root: The xml root.\n        @type root: L{sax.element.Element}\n        @param baseurl: The base url used for importing.\n        @type baseurl: basestring\n        @param options: An options dictionary.\n        @type options: L{options.Options}\n        @param container: An optional container.\n        @type container: L{SchemaCollection}\n        ' #NEWLINE# self . root = root #NEWLINE# self . id = objid ( self ) #NEWLINE# self . tns = self . mktns ( ) #NEWLINE# self . baseurl = self #NEWLINE# self . container = container #NEWLINE# self . children = [ ] #NEWLINE# self . all = [ ] #NEWLINE# self . types = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . imports = [ ] #NEWLINE# self . elements = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . attributes = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . groups = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . agrps = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# if ( options . doctor is not None ) : #NEWLINE# #INDENT# options . doctor . examine ( root ) #NEWLINE# #UNINDENT# form = self . root . get ( 'elementFormDefault' ) #NEWLINE# if ( form is None ) : #NEWLINE# #INDENT# self . form_qualified = False #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . form_qualified = ( form == 'qualified' ) #NEWLINE# #UNINDENT# if ( container is None ) : #NEWLINE# #INDENT# self . build ( ) #NEWLINE# self . open_imports ( options ) #NEWLINE# self . dereference ( )