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

Re: XQuery - Two if's in a for loop

Subject: Re: XQuery - Two if's in a for loop
From: Florent Georges <lists@xxxxxxxxxxxx>
Date: Mon, 18 Apr 2011 10:17:43 +0100 (BST)
Re:  XQuery - Two if's in a for loop
sudheshna iyer wrote:


> In other words, I want something like below. Please note that
> these are not else if. It is working if i put else if. But I
> want all the blocks..not just one or two or three..

> If (ReturnParameterCode = One) then block one should be present
> If (ReturnParameterCode = two) then block two should be present
> If (ReturnParameterCode = three) then block three should be present

  In XSLT, you do it naturally by using template rules:

    <xsl:template match="ReturnParameterCode[. eq 'ONE']">

    <xsl:template match="ReturnParameterCode[. eq 'TWO']">

    <xsl:template match="ReturnParameterCode[. eq 'THREE']">

  For XQuery, to get the best responses, I suggest you ask the
list XQuery Talk <http://www.x-query.com/mailman/listinfo/talk>.


Florent Georges

Current Thread


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.
First Name
Last Name
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.