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

RE: getting combo value,not textbox value

Subject: RE: getting combo value,not textbox value
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 5 Mar 2009 12:58:15 -0000
RE:  getting combo value
> 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

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-2011 All Rights Reserved.