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

applying a xsl sheet to data when posted from a form

Subject: applying a xsl sheet to data when posted from a form
From: Emmett Golde <ergolde@xxxxxxx>
Date: Thu, 6 Sep 2001 12:08:49 -0400
xsl get posted data
Hello All,
	I am trying to translate data from an html form post.  I have multiple 
rows in my form.   This works just fine if I only have one row of data but 
when I have multiple rows posted all I get as a result is one blank form. 
 Any suggestions on what I am missing??
Thank You,
Emmett Golde
html:
<form  method="POST">
<table >
	<tr>
	<td>
	<input type="text" name="name" value="emmett"/>
	</td>
	<td>
	<input type="text" name="rank" value="2"/>
	</td>
	<td>
	<input type="text" name="serialnumber"  value="23456"/>
	</td>
	</tr>
	<tr>
	<td>
	<input type="text" name="name" value="joe"/>
	</td>
	<td>
	<input type="text" name="rank" value="5"/>
	</td>
	<td>
	<input type="text" name="serialnumber"  value="887654"/>
	</td>
	</tr>
</table>
<input type="submit" value="Submit Update">
</form>
XSL SHEET
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
version="1.0">
  <xsl:template match="/">
    <ROWSET>
     <xsl:for-each select="request/parameters">
      <ROW>
          <FIELD1>
          	<xsl:value-of select="name"/>
          </FIELD1>
          <FIELD2>
	        <xsl:value-of select="rank"/>
          </FIELD2>
          <FIELD3>
	       <xsl:value-of select="serialnumber"/>
          </FIELD3>
      </ROW>
     </xsl:for-each>
    </ROWSET>
  </xsl:template>

 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.