bridgepoint/gen_xsd_schema.py
def build_user_type(s_udt):
    '''
    Build an xsd simpleType out of a S_UDT.
    '''
    s_dt_user = nav_one(s_udt).S_DT[17]()
    s_dt_base = nav_one(s_udt).S_DT[18]()
    
    base_name = get_type_name(s_dt_base)
    if base_name:
        user = ET.Element('xs:simpleType', name=s_dt_user.name)
        ET.SubElement(user, 'xs:restriction', base=base_name)
        
        return user
def build_user_type(s_udt):
    '''
    Build an xsd simpleType out of a S_UDT.
    '''
    s_dt_user = nav_one(s_udt).S_DT[17]()
    s_dt_base = nav_one(s_udt).S_DT[18]()
    
    base_name = get_type_name(s_dt_base)
    if base_name:
        user = ET.Element('xs:simpleType', name=s_dt_user.name)
        ET.SubElement(user, 'xs:restriction', base=base_name)
        
        return user
def build_user_type ( s_udt ) : s_dt_user = nav_one ( s_udt ) . S_DT [ 17 ] ( ) s_dt_base = nav_one ( s_udt ) . S_DT [ 18 ] ( ) base_name = get_type_name ( s_dt_base ) if base_name : user = ET . Element ( 'xs:simpleType' , name = s_dt_user . name ) ET . SubElement ( user , 'xs:restriction' , base = base_name ) return user
Build an xsd simpleType out of a S_UDT.
Build an xsd simpleType out of a S_UDT .