Changeset 3290


Ignore:
Timestamp:
Jun 8, 2013, 3:52:28 PM (5 years ago)
Author:
shiyangy
Message:

add some test files and modified character set code general file

Location:
proto/xmlschema/test
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • proto/xmlschema/test/element_ID

    r3218 r3290  
    1 boundedBy 1
    2 description 2
    3 name 3
    4 Envelope 4
    5 lowerCorner 5
    6 upperCorner 6
    7 class 7
    8 function 8
    9 usage 9
    10 yearOfConstruction 10
    11 yearOfDemolition 11
    12 roofType 12
    13 measuredHeight 13
    14 storeysAboveGround 14
    15 storeysBelowGround 15
    16 storeyHeightsAboveGround 16
    17 storeyHeightsBelowGround 17
    18 lod1Solid 18
    19 lod1MultiSurface 19
    20 lod1TerrainIntersection 20
    21 lod2Solid 21
    22 lod2MultiSurface 22
    23 lod2MultiCurve 23
    24 lod2TerrainIntersection 24
    25 outerBuildingInstallation 25
    26 interiorBuildingInstallation 26
    27 lod3Solid 28
    28 lod3MultiSurface 29
    29 lod3MultiCurve 30
    30 lod3TerrainIntersection 31
    31 lod4Solid 32
    32 lod4MultiSurface 33
    33 lod4MultiCurve 34
    34 lod4TerrainIntersection 35
    35 interiorRoom 36
    36 consistsOfBuildingPart 37
    37 address 38
     1xforms:xform 1
     2xforms:model 2
     3xforms:instance 3
     4xforms:privacy 4
     5xforms:bindings 5
     6xforms:submitInfo 6
     7xforms:bind 7
     8xforms:caption 8
     9xforms:hint 9
     10xforms:help 10
     11xforms:alert 11
     12xforms:action 12
     13xforms:extension 13
     14xforms:choices 14
     15xforms:item 15
     16xforms:itemref 16
     17xforms:input 17
     18xforms:textarea 18
     19xforms:secret 19
     20xforms:upload 20
     21xforms:selectOne 21
     22xforms:selectMany 22
     23xforms:selectBoolean 23
     24xforms:range 24
     25xforms:button 25
     26xforms:output 26
     27xforms:submit 27
     28xforms:dispatch 28
     29xforms:refresh 29
     30xforms:recalculate 30
     31xforms:revalidate 31
     32xforms:setFocus 32
     33xforms:setValue 33
     34xforms:submitInstance 34
     35xforms:resetInstance 35
     36xforms:insert 36
     37xforms:delete 37
     38xforms:scroll 38
     39xforms:setRepeatCursor 39
     40xforms:toggle 40
     41xforms:script 41
     42xforms:group 42
     43xforms:switch 43
     44xforms:case 44
     45xforms:repeat 45
     46xforms:defComponent 46
     47xforms:param 47
     48xforms:valueOf 48
     49xforms:component 49
  • proto/xmlschema/test/gid_ge.py

    r3218 r3290  
    1 def gid_ge(fname):
     1import string
     2map_lst = []
     3for i in string.letters:
     4        map_lst.append(i)
     5map_lst = map_lst + range(0,9)
     6
     7def gid_ge(fname,xforms):
    28       
    39        f = open(fname,'r')
    410        ls = []
    511        fout = open(fout_name,'w')
     12        fout_1 = open(fout_re,'w')
     13        fout_cc = open(fccinput,'w')
     14        fout_2 = open(fout_lex,'w')
    615        n = 1
    716        while True:
     
    1726                        if s not in ls:
    1827                                ls.append(s)
    19                                 fout.write(s+' '+str(n)+'\n')
     28                                fout.write(namespace+s+' '+str(n)+'\n')
     29                                fout_1.write(s+' '+str(n)+' '+map_lst[n-1]+'\n')
     30                                if n<10:
     31                                        fout_cc.write('lex.cc'+str(n-1)+' = '+'[\\x0'+str(n)+']'+'\n')
     32                                else:
     33                                        fout_cc.write('lex.cc'+str(n-1)+' = '+'[\\x'+str(n)+']'+'\n')
     34                        fout_2.write('\tcc'+str(n-1)+' = 0'+'\n')
    2035                        n = n + 1
     36        fout_cc.write('lex.LF = [\\x0A]')
    2137        f.close()
     38        fout.close()
     39        fout_1.close()
     40        fout_cc.close()
    2241       
    23 fname = 'simpleBuildings_sch.xml'
     42fname = 'xForm.xsd'
     43namespace = 'xforms:'
    2444fout_name = 'element_ID'
    25 gid_ge(fname)
    26        
     45fout_re = 'map'
     46fout_lex = 'lex'
     47fccinput = 'ccinput'
     48gid_ge(fname,namespace)
Note: See TracChangeset for help on using the changeset viewer.