Subject: RE: [xsl] getting combo value,not textbox value From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Thu, 5 Mar 2009 12:58:15 -0000 |
> I am not asking about HTML, HTML script is proper. You _are_ asking about HTML. Your stylesheet is producing an HTML document. It's not the HTML document you want, but it's the one you asked for. Work out what you want your output HTML to look like (at the markup level), and we can help you generate it using XSLT. But if the only thing you can tell us about your HTML is what effect you want it to have when executed in the browser, then you are asking for help designing your HTML, and that's out of scope for this forum. Michael Kay http://www.saxonica.com/ > I think that it has to do with XML file. > > This is another similar example. > > If I am having 1 entry,then form.submit is not working. > > <tracks> > > <one> > <label>machine name</label> > <desc>specify machine name</desc> > </one> > </tracks> > > and if I am having 2nd,though blank entry,then form.submit works. > > <tracks> > > <one> > <label>machine name</label> > <desc>specify machine name</desc> > </one> > <one> > </one> > </tracks> > > This is the XSL file for this. > -------------------------------------------------------------- > --------------------------- > <xsl:template match="tracks"> > > <table border="1"> > <tr> > <td> Parameter </td> > <td> Description </td> > <td> Value </td> > </tr> > <xsl:apply-templates/> > </table> > </xsl:template> > > <xsl:template match="one"> > <form name="form1" method="POST" action="one.cgi"> > <tr> > <td> > <xsl:value-of select="label"/> > </td> > <td> > <xsl:value-of select="desc"/> > </td> > <td> > <xsl:if test="label = 'machine name'"> > <input type="text" name="machinename" value=""> > </input> > > </xsl:if> > </td> > </tr> > </form> > <script> > > document.form1.submit(); > </script> > </xsl:template>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] getting combo value,not t, himanshu padmanabhi | Thread | Re: [xsl] getting combo value,not t, XSL-List Owner |
[xsl] xsl inside form element not w, himanshu padmanabhi | Date | Re: [xsl] getting combo value,not t, XSL-List Owner |
Month |