[xsl] Problem with count() function using Xalan

Subject: [xsl] Problem with count() function using Xalan
From: collins.tchoumba@xxxxxxxxxxxx
Date: Wed, 21 Nov 2007 18:21:58 +0100
Hi i'm using XAlan 2.6 within a java application.
I'm getting trouble with the fucntion count().
It always return 1 even if the nodes i wich to count are more than 1.

I have some thing like this witihin my template:

  <xsl:template match="END-OF-PDU-FIELD" mode="service">
     <xsl:variable name="struct_ref" select="BASIC-STRUCTURE-REF/@ID-REF"/>
     <xsl:variable name="struct" select="
     <xsl:variable name="taille_struct">
       <xsl:value-of select="count($struct/PARAMS/PARAM)"/>

My STRUCTURE element contains a child PARAMS. And PARAMS contains  5
child(PARAM) but the count function always return 1
Do anyone come across a such problem yet ?

Thanks !!!

Current Thread