Apache Cocoon XSLT

raddi

Mitglied
Habe ein Problem mit Apache Cocoon (hoffe, es kann mir hier jmd helfen):

UNdzwar habe ich folgende XML-Datei:

PHP:
<?xml version="1.0"?>

<arbeitsplan>
  <termin>
    <zeit>
      2003 Juli
    </zeit>
    <inhalt>
      Themenfindung 
    </inhalt>
    <technik>
      n/A 
    </technik>
    <verantwortlich>
      alle 
    </verantwortlich>
    </termin>
  <termin>
    <zeit>
      2003 Juli
    </zeit>
    <inhalt>
      Themenfindung 
    </inhalt>
    <technik>
      n/A 
    </technik>
    <verantwortlich>
      keiner
    </verantwortlich>
    </termin>
</arbeitsplan>
mit folgendem XSL-Stylesheet:
PHP:
<?xml version="1.0"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

  <xsl:template match="arbeitsplan">
   <html>
    <body>
     <table class="arbeitsplan">
       <tr>
         <th>
           Zeit
         </th>
         <th>
           Ziel
         </th>
         <th>
           Methoden
         </th>
         <th>
           Verantwortlicher
         </th>
        </tr>
       <xsl:apply-templates>
         <xsl:sort select="zeit" order="ascending" data-type="text" />
       </xsl:apply-templates>
     </table>
    </body>
   </html>
  </xsl:template>

  
  <xsl:template match="termin">
    <xsl:if arbeitsplan="verantwortlich = alle">
      <tr>
        <xsl:apply-templates/>
      </tr>
    </xsl:if> 
  </xsl:template>

  <xsl:template match="zeit">
   <td class="termin"><xsl:apply-templates/></td>
  </xsl:template>

  <xsl:template match="inhalt">
   <td class="inhalt">
    <xsl:apply-templates/>
   </td>
  </xsl:template>

  <xsl:template match="technik">
   <td class="technik">
    <xsl:apply-templates/>
   </td>
  </xsl:template>

  <xsl:template match="verantwortlich">
   <td class="verantwortlich">
    <xsl:apply-templates/>
   </td>
  </xsl:template>

</xsl:stylesheet>

Apache Cocoon liefert mir hier jedoch nur einen Fehler
Normalerweise sollte nur der Termin mit verantwortlich=alle ausgegeben werden...
 
Zurück