There is something wrong here.  When I look at your code, it is hard to figure out because there are no ending tags for your for-each statements.  So, it is hard to know if you are in a nested for-each or not.  Also, the xsl:sort only works when it is the first child of an apply-templates or for-each.  Your xsl:sort is in a place that should give an error.  Did you just type in this snippet, or is this really what your file looks like?  If you can resend with appropriate end tags, etc it would be easier to figure out. 

Irv

On 1/10/06, Christian Barth <[EMAIL PROTECTED]> wrote:
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="//[EMAIL PROTECTED]/Stockwerk_Liste/[EMAIL PROTECTED]//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="//[EMAIL PROTECTED]/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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]