[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
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|