Changeset 3293 for proto/xmlschema/test


Ignore:
Timestamp:
Jun 10, 2013, 2:57:35 PM (6 years ago)
Author:
shiyangy
Message:

test case added, gid code generater modified

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

Legend:

Unmodified
Added
Removed
  • proto/xmlschema/test/Makefile

    r3290 r3293  
    33CC_Output=ccoutput
    44CC_Output_Lex = lex
     5
     6Gid_Ge = gid_ge.py
    57
    68PABLO_SRC_CC=../parabix2_validation_cc.py
     
    1113
    1214cc:
     15        python $(Gid_Ge)
    1316        python $(CC_Compiler) $(CC_Input) > $(CC_Output)
    1417        sed -e '/@cc_code/{r $(CC_Output)' -e 'd}' $(PABLO_SRC_CC) > $(PABLO_SRC_LEX)
  • proto/xmlschema/test/element_ID

    r3290 r3293  
    1 xforms:xform 1
    2 xforms:model 2
    3 xforms:instance 3
    4 xforms:privacy 4
    5 xforms:bindings 5
    6 xforms:submitInfo 6
    7 xforms:bind 7
    8 xforms:caption 8
    9 xforms:hint 9
    10 xforms:help 10
    11 xforms:alert 11
    12 xforms:action 12
    13 xforms:extension 13
    14 xforms:choices 14
    15 xforms:item 15
    16 xforms:itemref 16
     1xforms:model 1
     2xforms:instance 2
     3xforms:submission 3
     4xforms:bind 4
     5xforms:label 5
     6xforms:hint 6
     7xforms:help 7
     8xforms:alert 8
     9xforms:extension 9
     10xforms:choices 10
     11xforms:value 11
     12xforms:item 12
     13xforms:itemset 13
     14xforms:copy 14
     15xforms:filename 15
     16xforms:mediatype 16
    1717xforms:input 17
    1818xforms:textarea 18
    1919xforms:secret 19
    2020xforms:upload 20
    21 xforms:selectOne 21
    22 xforms:selectMany 22
    23 xforms:selectBoolean 23
    24 xforms:range 24
    25 xforms:button 25
    26 xforms:output 26
    27 xforms:submit 27
     21xforms:select1 21
     22xforms:select 22
     23xforms:range 23
     24xforms:trigger 24
     25xforms:output 25
     26xforms:submit 26
     27xforms:action 27
    2828xforms:dispatch 28
    29 xforms:refresh 29
    30 xforms:recalculate 30
    31 xforms:revalidate 31
    32 xforms:setFocus 32
    33 xforms:setValue 33
    34 xforms:submitInstance 34
    35 xforms:resetInstance 35
    36 xforms:insert 36
    37 xforms:delete 37
    38 xforms:scroll 38
    39 xforms:setRepeatCursor 39
    40 xforms:toggle 40
    41 xforms:script 41
    42 xforms:group 42
    43 xforms:switch 43
    44 xforms:case 44
    45 xforms:repeat 45
    46 xforms:defComponent 46
    47 xforms:param 47
    48 xforms:valueOf 48
    49 xforms:component 49
     29xforms:rebuild 29
     30xforms:revalidate 30
     31xforms:recalculate 31
     32xforms:refresh 32
     33xforms:setfocus 33
     34xforms:load 34
     35xforms:setvalue 35
     36xforms:send 36
     37xforms:reset 37
     38xforms:insert 38
     39xforms:delete 39
     40xforms:setindex 40
     41xforms:toggle 41
     42xforms:message 42
     43xforms:repeat 43
     44xforms:group 44
     45xforms:switch 45
     46xforms:case 46
  • proto/xmlschema/test/gid_ge.py

    r3290 r3293  
    33for i in string.letters:
    44        map_lst.append(i)
    5 map_lst = map_lst + range(0,9)
     5map_lst = range(0,9) + map_lst
    66
    77def gid_ge(fname,xforms):
     
    2727                                ls.append(s)
    2828                                fout.write(namespace+s+' '+str(n)+'\n')
    29                                 fout_1.write(s+' '+str(n)+' '+map_lst[n-1]+'\n')
     29                                fout_1.write(s+' '+str(n)+' '+str(map_lst[n])+'\n')
    3030                                if n<10:
    31                                         fout_cc.write('lex.cc'+str(n-1)+' = '+'[\\x0'+str(n)+']'+'\n')
     31                                        fout_cc.write('lex.cc'+str(n)+' = '+'[\\x0'+str(n)+']'+'\n')
    3232                                else:
    33                                         fout_cc.write('lex.cc'+str(n-1)+' = '+'[\\x'+str(n)+']'+'\n')
    34                         fout_2.write('\tcc'+str(n-1)+' = 0'+'\n')
     33                                        fout_cc.write('lex.cc'+str(n)+' = '+'[\\x'+str(n)+']'+'\n')
     34                        fout_2.write('\tcc'+str(n)+' = 0'+'\n')
    3535                        n = n + 1
    36         fout_cc.write('lex.LF = [\\x0A]')
     36        fout_cc.write('lex.tag_closing = [\\x00]')
     37#       fout_cc.write('lex.LF = [\\x0A]')
    3738        f.close()
    3839        fout.close()
     
    4041        fout_cc.close()
    4142       
    42 fname = 'xForm.xsd'
     43fname = 'XForms-Schema.xsd'
    4344namespace = 'xforms:'
    4445fout_name = 'element_ID'
Note: See TracChangeset for help on using the changeset viewer.