Birgit Hünneke: Tabelle

Beitrag lesen

Hallo,

ich schlage mich jetzt schon seit längerem mit einem Problem herum. Ich muss ein XSL-Stylesheet erstellen, bei dem u.a. folgendes Ergebnis herauskommen soll:

1. Often
2. From time to time
3. Rarely
4. Never
5. DK
6. NA

Hier ist dazu ein Ausschnitt der XML-Datei:
...
<dataDscr>
   <var name="V38">
      <location StartPos="124" width="1"/>
      <labl>Q3 POL DISCUSSION - CONVINCE FRIENDS</labl>
      <qstn ID="Q.3">
 <qstnLit>When you hold a strong opinion, do you ever find yourself persuading your friends, relatives or fellow workers to share your views? Does this happen ...? (READ OUT)</qstnLit>
 <backward>Last trend: EB47.0  Q.3</backward>
      </qstn>
      <catgry>
         <catValu>1</catValu>
  <txt>Often</txt>
      </catgry>
      <catgry>
  <catValu>2</catValu>
  <txt>From time to time</txt>
      </catgry>
      <catgry>
  <catValu>3</catValu>
         <txt>Rarely</txt>
      </catgry>
      <catgry>
  <catValu>4</catValu>
  <txt>Never</txt>
      </catgry>
      <catgry missing="Y">
         <catValu>5</catValu>
  <txt>DK</txt>
      </catgry>
      <catgry missing="Y">
         <catValu>0</catValu>
  <txt>NA</txt>
      </catgry>
...

Wie mache ich das? Sind die Infos dazu ausreichend, oder soll ich einen größeren Ausschnitt nehmen (XML-Datei ist ziemlich weit verzweigt, d.h. die "Pfade" sind recht lang)?

Ich hoffe es kann mir jemand weiterhelfen, ich verzweifle nämlich bald. Entweder es wird nur die erste Zeile gezeigt oder alle <catgry>-Elemente der Datei.