This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: conditional 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]