<?xml version="1.0" encoding="iso-8859-1"?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="de" xml:lang="de"
      xmlns:avid="de.uni-ulm/infvs/avid">
  <head>
    <title>AVID-Uebung 1</title>
  </head>
  <body>

    <div avid:generate="page-title"/>
    <!-- erzeugt z.B.
      <div style="font-size:18pt; font-weight:bold; border:solid 1px black">
        ... Text aus html/head/title ...
      </div>
    -->
    
    <h1>Uebersicht</h1>

    <p>Es folgt eine Uebersicht der Studierenden, geordnet nach
       Veranstaltung.</p>

    <avid:for-lectures>
      <h2><avid:get-lecture/></h2>
      <p><avid:get-professors/></p>
      <ul>
        <avid:for-students>
          <li><avid:get-student/></li>
        </avid:for-students>
      </ul>
      <p>Anteil an Studienrichtung: <avid:sum-branches/></p>
    </avid:for-lectures>

    <!-- Beispielhafte Ausgabe

      <h2>Architekturen fuer Verteilungsplatformen</h2>
      ...
      
      <h2>Grundlagen der Informatik 1 (GDI1)</h2>
      <p>Dozenten: Prof. Dr. Yves Martin, Prof. Dr. Loth Jordan</p>
      <ul>
        <li>Anna Berta</li>
        <li>Karen Linus</li>
        <li>Moni Nathan</li>
        <li>Otto Patrick</li>
        <li>Yvette Zausel</li>
      </ul>
      <p>Anteil an Studienrichtung: 2 Medien-Informatik, 2 Diplom-Informatik, 1 Master-Informatik</p>
      
      ...
      <h2>...</h2>
      
    -->

  </body>

  <avid:data xmlns="de.uni-ulm/infvs/avid">
  
    <!-- TODO ob das wohl funktioniert? ggf. alle sub-element mit NS versehen -->

    <lect nick="AVP" title="Architekturen fuer Verteilungsplatformen">
      <prof ref-id="yves"/>
      <stud ref-id="s-2"/>
      <stud ref-id="s-3"/>
      <stud ref-id="s-9"/>
      <stud ref-id="s-7"/>
      <stud ref-id="s-8"/>
      <stud ref-id="s-4"/>
      <stud ref-id="s-5"/>
      <stud ref-id="s-12"/>
      <stud ref-id="s-11"/>
    </lect>

    <lect nick="GDI1" title="Grundlagen der Informatik 1">
      <prof ref-id="yves"/>
      <prof ref-id="loth"/>
      <stud ref-id="s-13"/>
      <stud ref-id="s-1"/>
      <stud ref-id="s-6"/>
      <stud ref-id="s-7"/>
      <stud ref-id="s-8"/>
    </lect>

    <lect nick="NOPE" title="Freizeit">
      <stud ref-id="s-10"/>
    </lect>

    <prof id="yves">
      <name>Prof. Dr. Yves Martin</name>
      <dept>Verteilte Systeme</dept>
    </prof>
    
    <prof id="loth">
      <name>Prof. Dr. Loth Jordan</name>
      <dept>Theoretische Informatik</dept>
    </prof>

    <stud id="s-1" mnr="47114712-1">
      <name>Anna Berta</name> <branch>Medien-Informatik</branch> </stud>
    <stud id="s-2" mnr="47114712-2">
      <name>Caesar Daniel</name> <branch>Diplom-Informatik</branch> </stud>
    <stud id="s-3" mnr="47114712-3">
      <name>Erich Frank</name> <branch>Diplom-Informatik</branch> </stud>
    <stud id="s-4" mnr="47114712-4">
      <name>Gertrud Hans</name> <branch>Medien-Informatik</branch> </stud>
    <stud id="s-5" mnr="47114712-5">
      <name>Ignatz Julia</name> <branch>Diplom-Informatik</branch> </stud>
    <stud id="s-6" mnr="47114712-6">
      <name>Karen Linus</name> <branch>Diplom-Informatik</branch> </stud>
    <stud id="s-7" mnr="47114712-7">
      <name>Moni Nathan</name> <branch>Diplom-Informatik</branch> </stud>
    <stud id="s-8" mnr="47114712-8">
      <name>Otto Patrick</name> <branch>Master-Informatik</branch> </stud>
    <stud id="s-9" mnr="47114712-9">
      <name>Quendolin Ruth</name> <branch>Medien-Informatik</branch> </stud>
    <stud id="s-10" mnr="47114712-10">
      <name>Soeren Thor</name> <branch>Master-Informatik</branch> </stud>
    <stud id="s-11" mnr="47114712-11">
      <name>Urs Vroni</name> <branch>Diplom-Informatik</branch> </stud>
    <stud id="s-12" mnr="47114712-12">
      <name>Walter Xaver</name> <branch>Medien-Informatik</branch> </stud>
    <stud id="s-13" mnr="47114712-13">
      <name>Yvette Zausel</name> <branch>Medien-Informatik</branch> </stud>
  </avid:data>
  
  <!--

  Es gibt folgende Typen:
  - Person
  - Student
  - Professor
  - Lecture
  Student und Professor sind jeweils Erweiterungen von Person, 
  die Gemeinsamkeiten sind das Attribut id bzw. ref-id und das
  Subelement name.

  Beziehungen:
  - Student geht in keine oder beliebig viele Lectures
  - Lecture hat mindestens einen Student (sonst faellt sie aus :)
  - Professor haelt eine oder beliebig viele Lectures.
  - Lecture wird von 0 bis 2 Professors gehalten.

  Die Elemente werden stud, prof, lect abgekuerzt, der Typ
  Person tritt nicht direkt als Element auf.
  Die Elemente treten in zwei Varianten auf: einmal als
  Datenelement mit einem id-Attribut und einmal als Referenz
  mit dem Attribut ref-id.
  -->

</html>
