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]
Other format: [Raw text]

Variable access


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


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