1 Replies - 169 Views - Last Post: 09 August 2013 - 09:04 AM Rate Topic: -----

#1 jjsaw5  Icon User is offline

  • I must break you
  • member icon

Reputation: 90
  • View blog
  • Posts: 3,060
  • Joined: 04-January 08

XSL Question Concerning XSL:When

Posted 09 August 2013 - 08:25 AM

I am trying to add a second condition to the WHEN cluse but am having some trouble getting it to work. It is not seeing the second condition and skipping down to the Otherwise clause.

If i remove the AND everything works fine, but the AND is import to this functioning correctly. Any help is apprichiated.

<xsl:template name="users">
	<xsl:choose>
		<xsl:when test="querydata[position()=2]/text =4 and querydata[position()=4]/text =USX">
	 .....do something.....
		  </xsl:when>
		<xsl:when test="querydata[position()=2]/text =3 and querydata[position()=4]/text =EDS">
	      	.....do something.....
		</xsl:when>
		<xsl:otherwise>
			.....do something		
               </xsl:otherwise>
		</xsl:choose>
</xsl:template>



Is This A Good Question/Topic? 0
  • +

Replies To: XSL Question Concerning XSL:When

#2 baavgai  Icon User is offline

  • Dreaming Coder
  • member icon

Reputation: 5800
  • View blog
  • Posts: 12,634
  • Joined: 16-October 07

Re: XSL Question Concerning XSL:When

Posted 09 August 2013 - 09:04 AM

Try quotes for text:
<xsl:when test="querydata[position()=2]/text=3 and querydata[position()=4]/text='EDS'">


Was This Post Helpful? 0
  • +
  • -

Page 1 of 1