20 lines
526 B
Plaintext
20 lines
526 B
Plaintext
<profs>
|
|
{
|
|
for $prof in distinct-values(//prof)
|
|
order by $prof
|
|
return <prof>
|
|
<name>{$prof}</name>
|
|
{
|
|
for $cour in //cours[prof = $prof]
|
|
order by number($cour/nom/@th + $cour/nom/@tp)
|
|
return
|
|
element cour { attribute name {$cour/nom},
|
|
for $qui in $cour/qui/child::node()
|
|
order by name($qui), $qui/@annee, $qui/@dept
|
|
return element classe {attribute ects {$qui/@ects},
|
|
concat(name($qui),$qui/@annee,"-",$qui/@dept) }
|
|
}
|
|
}
|
|
</prof>
|
|
}
|
|
</profs> |