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

need suggestion for looping and variable problem

Subject: need suggestion for looping and variable problem
From: "Zoe Peng" <zoe@xxxxxxxxxxxx>
Date: Fri, 16 Aug 2002 10:54:51 -0400
for looping
Hi, 
I have an email app that allow user to select email_msg serverl times 
and concat the messages. 

But, I can't do this cuz it is return just only one value 
MAILMSGCONTENT. 

<select name="MAILMSGCONTENT" title="MAILMSGCONTENT" multiple="false">
<xsl:for-each select="( user_email_msgs/email_msg | 
default_email_msgs/email_msg ) [position() > ($Page * $PageSize)] 
[position() &lt;= $PageSize]">
            <option value="{em_msg_subj}" onpick="#editMsg" >
                <xsl:value-of select="em_msg_subj"/>
            </option>
        </xsl:for-each>
</select>

What I want is: 
The first time, when user click one msg(yes), it return (yes)
The second time, when user click another one(no), it return (no) and  
I'll concat it to become (yes; no)
How can I approach this? any ideas? Thanks in advance. 

--xml
<?xml version="1.0"?>
    <user_email_msgs usr_id="user1">
      <email_msg>
        <em_msg_subj>Are you testing?</em_msg_subj>
      </email_msg>
      <email_msg>
        <em_msg_subj>How are you doing?</em_msg_subj>
      </email_msg>
      <email_msg>
        <em_msg_subj>Please call</em_msg_subj>
      </email_msg>
    </user_email_msgs>
    <default_email_msgs>
      <email_msg>
        <em_msg_subj>Yes</em_msg_subj>
      </email_msg>
      <email_msg>
        <em_msg_subj>No</em_msg_subj>
      </email_msg>
      <email_msg>
        <em_msg_subj>Please call</em_msg_subj>
      </email_msg>
      <email_msg>
        <em_msg_subj>Pick Up Groceries</em_msg_subj>
      </email_msg>
      <email_msg>
        <em_msg_subj>Call Home</em_msg_subj>
      </email_msg>
      <email_msg>
        <em_msg_subj>Contact School</em_msg_subj>
      </email_msg>
    </default_email_msgs>


 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.