cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Barth" <coc...@barth-zone.de>
Subject What's wrong with my XSL??
Date Tue, 17 Jan 2006 19:00:04 GMT
I want to do something like the first one.

<table>
  <tbody>
    <xsl:for-each select="*">
  	<xsl:when test="local-name() = 'abweichungen'">
    	  <tr>
 	    <th>Achtung Abweichungen:</th><th></th>
	  </tr>
	</xsl:when>
	<xsl:otherwise>
	  <tr>
	    <td><xsl:value-of select="local-name()" /></td><td><xsl:value-of
select="."/></td>
	  </tr>
	</xsl:otherwise>
    </xsl:for-each>
  <tbody>
<table>

But neither the 'when' nor the 'otherwise' are executed. Strange!

This one here is working:

<table>
  <tbody>
    <xsl:for-each select="*">
	<tr>
	  <td><xsl:value-of select="local-name()" /></td>
	  <td><xsl:value-of select="."/></td>
      </tr>
    </xsl:for-each>
  </tbody>
</table>


So, what's wrong??


Thanks,
BArthi


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message