cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Barth" <christ...@buerobarth.de>
Subject Why doesn't this XSL work??
Date Tue, 10 Jan 2006 13:39:53 GMT
Hi!


I wrote the following XSL-File:
 
...
<xsl:for-each
select="//Bs_Bauteil_Liste/Brandwand_Liste/Brandwand[funktion='Trennwand']">
<xsl:variable name="ID" select="@ID" />
<xsl:variable name="bez" select="bezeichnung" />
<xsl:variable name="wand_ID" select="Wand_id_Liste/wand_id"/>
<xsl:for-each
select="//Gebaeude[@ID=$gebId]/Stockwerk_Liste/Stockwerk[@ID=$stock_ID]//bau
teil_id">
<xsl:if test=". = $wand_ID">
nTrennwand=nNodeIdx;
nNodeIdx++;
Note(nTrennwand,nTrennwaende,'<xsl:value-of
select="$bez"/>','javascript:select(\'wand\', 
	\'Trennwand\',<xsl:value-of select="$ID"/>,<xsl:value-of
select="$stock_ID"/>)','wand')
<xsl:sort select="." order="ascending" data-type="text"/>
<xsl:for-each
select="//Bauteil[@ID=$wand_id]/Wand/Oeffnungs_Liste/Oeffnung">
...

It's just a part of the file. But the rest is working. My Problem is the
<xsl:if>. Is there anything wrong with it? It's always true.
When I write <xsl:value-of select="." /> and <xsl:value-of select="$wand_ID"
/>, the values are correct. I don't understand this.

Another problem is that when I remove the <xsl:sort>-Tag I get an "Unable to
get transformer handler"-error.
I thought the sort-Tag is optional, isn't it?

Greets,
Barthi


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


Mime
View raw message