This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| 
                    stats:schema:student [2011/10/24 15:56] Patrick Michel [Sign-Up and Sign-Out]  | 
                
                    stats:schema:student [2013/07/10 12:47] (current) | 
            ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| <code xcend> | <code xcend> | ||
| - | element students { | + | element student * id { [ count (./id, /account/student/id) = 1 ] | 
| - | element student * id { [ exists //accounts/account/student[./id] ] # 1.6, 2.11 | + | attribute group ? { ident [ exists ..exercise/group[.] ]} | 
| - | attribute group ? { ident [ exists ..exercise/groups/group[.] ]} # 1.7 | + | attribute team ? { ident [ exists ../group ]} | 
| - | attribute team ? { ident [ exists ../group ]} | + | element result * sheet { [ exists ..exercise/sheet[./sheet] ] | 
| - | element result * sheet { [ exists ..exercise/sheets/sheet[./sheet] ] # 1.8, 2.12 | + | attribute points  { double [ . >= 0 && . <= ..exercise/sheet[../sheet]/maxPoints ]} | 
| - | attribute points  { double [ . >= 0 && . <= ..exercise/sheets/sheet[../sheet]/maxPoints ]} # 3.3 | + | } | 
| - | } | + | } | 
| - | } | + | |
| - | }  | + | |
| </code> | </code> | ||
| Line 37: | Line 35: | ||
| - | ==== Assignment of Teams ==== | + | ==== Team Assignment ==== | 
| The tutors assign teams to the students of their groups. | The tutors assign teams to the students of their groups. | ||