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

RE: add new line to an html table with xsl

Subject: RE: add new line to an html table with xsl
From: Jarno.Elovirta@xxxxxxxxx
Date: Tue, 18 Mar 2003 12:37:10 +0200
xml add line
Hi,

> i would like to create a button in my html page which allows 
> the user to
> add new lines to its html table. I would like to code this in xsl by
> using an if condition and a variable declaration:
> 
> <xsl:variable name="newLine">
>  <td>
>   <input border="0" name="toto" size="10" type="text" />
> </td>
> </xsl:variable>
> 
> <table>
> .....
> <xsl:if "test=...">
>  <xsl:copy-of  select="$newLine"/>
> </xsl:if>
> 
> </table>

How is the button supposed to work? Will it run the XSLT transformation on the client using ECMAScript, or will it call some service on the server that return the document with a new row? Your XSLT looks correct, but you have to specify where will the transformation take place. Anyhow, I'd suggest using DOM for this.

Cheers,

Jarno - This Morn'Omina: One Eyed Man

 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.