Subject: [xsl] Variable access From: "Satish, L. Gnanendra" <LGnanendra.Satish@xxxxxxxxxx> Date: Fri, 20 Sep 2002 12:22:36 +0200 |
Hello, I have a small problem with variable scope. I would like to declare a variable and store the "Cleared" action in the <for-each> iteration, and then I have to access it again after the loop ends (It would be even more nice if I could break the loop on encountering the 'Cleared' text) to do some processing based on the status of the action. Can anyone help me with this? Solution needed asap. <xsl:template name="Call_ClearedBySystemMapped"> <xsl:for-each select="MsgLevel/OIDInfo/OIDMapping"> <xsl:if test="ActionString='Cleared'"> <!-- Store the cleared variable here --> </xsl:if> </xsl:for-each> <!-- Access the variable here --> <xsl:choose> <xsl:when test="$Action='Cleared'"> <xsl:text> YES and process related </xsl:text> </xsl:when> <xsl:otherwise> <xsl:text> NO and do process related </xsl:text> </xsl:otherwise> </xsl:choose> </xsl:template> thanx in adv, Gnanendra. - - - - - - - Appended by Scientific-Atlanta, Inc. - - - - - - - This e-mail and any attachments may contain information which is confidential, proprietary, privileged or otherwise protected by law. The information is solely intended for the named addressee (or a person responsible for delivering it to the addressee). If you are not the intended recipient of this message, you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete it from your computer. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Calculation using the pos, Clifford, Karen | Thread | Re: [xsl] Variable access, Jeni Tennison |
RE: [xsl] replace < and > wit, bryan | Date | Re: [xsl] Re: exponential math func, Trevor Nash |
Month |