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

Re: conditional statements

Subject: Re: conditional statements
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 22 Jun 2001 09:32:35 +0100
xsl if condition statements
> Hi David,
>            Then is there a solution for my problem.

Yes. (In theory xsl can do anything), but what exactly is your problem?
I don't think you've stated it yet.


You've posted multiple messages but none of them have any information.
For example the one below. It has some code followed by a statement
I can't parse (what string do you pass to what program, by what method?)
and says one input gives the right result and one the wrong without
saying what you are trying to do.

When posting queries one should always give complete small input example
and a complete small output that you are trying to generate, then
someone might be able to suggest some code to do that translation.


David



Hi Folks,
The below code checks the if condition only for the first SC and omits the 
rest is there a way to check the if condition for all the SC's in that MC.


<xsl:template match="MC">
        <xsl:if test="contains($searchList, 
concat(normalize-space(SC/@BCID), ','))">
                <MC id="{@id}">
                    <xsl:apply-templates/>
                </MC>
        </xsl:if>
</xsl:template>

String i pass is 23,23,23, gives a right result
String i pass 23, gives me a wrong result.

ne suggestions

Thanks in advance
Spencer

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

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


Current Thread

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.