[xsl] getting combo value,not textbox value

Subject: [xsl] getting combo value,not textbox value
From: himanshu padmanabhi <himanshu.padmanabhi@xxxxxxxxx>
Date: Fri, 27 Feb 2009 15:13:01 +0530
This is my simple abc.xml

            <label>machine name</label>
            <desc>specify machine name</desc>
            <desc>specify limit which should not exceed</desc>
This is my corresponding abc.xsml

<xsl:template match="records">
    <table border="1">
            <td> Parameter </td>
            <td> Description </td>
            <td> Value </td>

<xsl:template match="one">
    <form name="form1" method="POST" action="one.cgi">
            <xsl:value-of select="label"/>
            <xsl:value-of select="desc"/>
            <xsl:if test="label = 'machine name'">
                    <select name="machine_name">
                      <xsl:call-template name="str:tokenize">
             <xsl:if test="label = 'limit'">
                  <input type="text" name="limit" value="">
         <input type="hidden" name="idx" value="{$idx}"/>
         <input type="hidden" name="sidx" value="{$sidx}"/>
         <input type="hidden" name="new" value="{$new}" />
Here,'machine_name' is combo box and 'limit' is text box.But I am
getting only the value of combo(which I select) in the $in hash in
next fom and not textbox's value.Why?Please help.

If I remove  'machine_name' entry from xml,xsl file,then I am getting
textbox's value in the $in hash in next form.

I am very poor in fundamentals of xml,xsl.I am even not sure how the
code flow is?
Means If there are 2 entries in XML file under tag 'one',then is
'<xsl:template match="one">' gets executed twice for each entry and
I just started going through "XSLT Cookbook By  Sal Mangano".

Thanks and Regards,
Himanshu Padmanabhi

Current Thread