Subject: Re: [xsl] conditional statements From: David Carlisle <davidc@xxxxxxxxx> Date: Fri, 22 Jun 2001 09:32:35 +0100 |
> 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] conditional statements, Earl Spencer | Thread | [xsl] Performance problem in transf, Shashank Rajvanshi |
AW: [xsl] WG: How to reorder an XML, Griebel, Peer | Date | RE: [xsl] xsl:import and caching un, Michael Kay |
Month |