[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

AW: <xsl:if>

Subject: AW: <xsl:if>
From: Markus Abt <abt@xxxxxxxx>
Date: Fri, 8 Aug 2003 16:15:42 +0200
xsl if two variables
Hello,

$kid[2] is always empty.
$aid[2] has the constant value of "{FF67ADDA-041A-49DA-ABEB-BFC6E23567DE}+00000000".

These two will always compare not equal.

Did you try some of my resent solutions, for example:
<xsl:for-each
	select="//Key_Group_Member_Groups/Key_Group_Member/Key_Group_MemberProps">
	<xsl:for-each select="../../../../../Attribute_Groups/Attribute[@id=current()/Key_Group_Member_Column]">
		<xsl:value-of select="@Name" />
		<br/>
	</xsl:for-each>
</xsl:for-each>


HELP US: WHAT ARE YOU TRYING TO DO ???


Regards,
Markus
__________________________
Markus Abt
Comet Computer GmbH
http://www.comet.de


----------
Von: 	AROSO Jose Antonio
Gesendet: 	Freitag, 8. August 2003 11:00
An: 	'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'
Betreff: 	RE:  <xsl:if>

	<xsl:for-each
select="Key_Group_Member_Groups/Key_Group_Member/Key_Group_MemberProps">
		<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@xxxxxxxxx]
Sent: quinta-feira, 7 de Agosto de 2003 21:54
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  <xsl:if>


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

Michael Kay

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> AROSO Jose Antonio
> Sent: 07 August 2003 16:56
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  <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


Current Thread
  • AW: <xsl:if>
    • Markus Abt - Fri, 8 Aug 2003 10:23:04 -0400 (EDT) <=

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.