1. use xsl attribute like gString
<?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <html> <body> <form method="post" action="edittool.asp"> <h2>Tool Information (edit):</h2> <table border="0"> <xsl:for-each select="tool/field"> <tr> <td> <xsl:value-of disable-output-escaping="yes" select="@id"/> </td> <td> <input type="text"> <xsl:attribute name="id"> <xsl:value-of select="@id" /> </xsl:attribute> <xsl:attribute name="name"> <xsl:value-of select="@id" /> </xsl:attribute> <xsl:attribute name="value"> <xsl:value-of select="value" /> </xsl:attribute> </input> <xsl:call-template name="br"> <xsl:with-param name="instring" select="@id"/> <xsl:with-param name = "otrString" select="'sss'"/> </xsl:call-template> </td> </tr> </xsl:for-each> </table> <br /> <input type="submit" id="btn_sub" name="btn_sub" value="Submit" /> <input type="reset" id="btn_res" name="btn_res" value="Reset" /> </form> </body> </html> </xsl:template> <xsl:template name="br"> <xsl:param name="instring"/> <xsl:param name="otrString"/> <input type="text" name="{$instring}"/> <xsl:value-of select="$instring"/> <xsl:value-of select="$otrString"/> </xsl:template> </xsl:stylesheet>