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

Variable access

Subject: Variable access
From: "Satish, L. Gnanendra" <LGnanendra.Satish@xxxxxxxxxx>
Date: Fri, 20 Sep 2002 12:22:36 +0200
access variable
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

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.