xsl-list
[Top] [All Lists]

RE: <xsl:if>

2003-08-08 03:54:40
And your source document is?

Michael Kay

-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com 
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com] On Behalf Of 
AROSO Jose Antonio
Sent: 08 August 2003 10:01
To: 'xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com'
Subject: RE: [xsl] <xsl:if>


      <xsl:for-each 
select="Key_Group_Member_Groups/Key_Group_Member/Key_Group_Mem
berProps">
              <xsl:variable name="kid" 
select="Key_Group_Member_Column" />

              <xsl:variable name="aname" 
select="../../../../../Attribute_Groups/Attribute/@Name" />

              <xsl:variable name="aid" 
select="../../../../../Attribute_Groups/Attribute/@id" />
      

              <xsl:value-of select="$kid[1]" />
                                                              
              <xsl:if test="$aid[1]=$kid[1]">  //this 
instruction compare very well
      

                      <xsl:value-of select="$aname[1]" /><br/>
                      <xsl:value-of select="$kid[2]" />
                      <xsl:value-of select="$aid[2]" />

                      <xsl:if test="$aid[2]=$kid[2]">   
//this instruction
dont compare very well
                              ola
                      </xsl:if>
                      <br/>
      

              </xsl:if>

                                                                      
                                                      
      </xsl:for-each>
                      
                      

-----Original Message-----
From: Michael Kay [mailto:mhk(_at_)mhk(_dot_)me(_dot_)uk]
Sent: quinta-feira, 7 de Agosto de 2003 21:54
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] <xsl:if>


Show us your code and we will tell you where it is wrong.

Michael Kay

-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com] On Behalf 
Of 
AROSO Jose Antonio
Sent: 07 August 2003 16:56
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] <xsl:if>


Hi.

I have two variables x1 e x2.

When i compare the x1[1] with x2[1] the comparison is
correct. But when i compare x1[2] with x2[2] the comparison 
is wrong. However i print the content of this two positions 
of the variables and it is equal.

I dont know what is happen.
Anyone can help me?

Best Regards

Jose





 XSL-List info and archive:  
http://www.mulberrytech.com/xsl/xsl-list



 XSL-List info 
and archive:  http://www.mulberrytech.com/xsl/xsl-list

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>