[Home] [By Thread] [By Date] [Recent Entries]
himanshu padmanabhi wrote:
This is "abc.xsl".one.cgi not getting called here.what can be the problem? XML file is proper.other than submit,all else works well in xsl file. At least try to generate valid HTML with your stylesheet. <xsl:template match="tracks">
<form name="form1" method="POST" action="one.cgi">
<table border="1">
<tr>
<td> Parameter </td>
<td> Description </td>
<td> Value </td>
</tr>
<xsl:apply-templates/>
</table>
</form>
<script type="text/javascript">
document.forms.form1.submit();
</script>
</xsl:template><xsl:template match="one"> <tr>
<td>
<xsl:value-of select="label"/>
</td>
<td>
<xsl:value-of select="desc"/>
</td>
<td>
<xsl:if test="label = 'Name'">
<input type="text" name="Name" value=""/>
</xsl:if>
</td>
</tr>
</xsl:template>That has better chances of working. -- Martin Honnen http://JavaScript.FAQTs.com/
|

Cart



