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

RE: XSL and javascript

Subject: RE: XSL and javascript
From: "Passin, Tom" <tpassin@xxxxxxxxxxxx>
Date: Wed, 12 Mar 2003 12:19:38 -0500
RE:  XSL and javascript
[ jeff@xxxxxxxxxxxx]
> 
> I have done it! I am now a javascript master! :D
> 
> Here it is for those interested, thanks for the input Tom, 

Glad to help ...  Now about your template, you could make it more
concise if you like (most people do).  Instead of what you have now -

> inside the city template:
>                   <xsl:element name="input">
>                     <xsl:attribute name="type">text</xsl:attribute>
>                     <xsl:attribute name="name"><xsl:value-of 
> select="offsetname"
> /></xsl:attribute>
>                     <xsl:attribute name="value"></xsl:attribute>
>                   </xsl:element>

you could use a so-called "attribute value template" with a "literal
result element" as follows -

	<input type='text' name='{offsetname}' value=''>

Simpler and cleaner, eh?

Cheers,

Tom P

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
  • XSL and javascript
    • jeff - Tue, 11 Mar 2003 14:47:28 -0500 (EST)
      • <Possible follow-ups>
      • Passin, Tom - Tue, 11 Mar 2003 16:09:22 -0500 (EST)
        • jeff - Tue, 11 Mar 2003 17:55:16 -0500 (EST)
      • Passin, Tom - Wed, 12 Mar 2003 12:16:53 -0500 (EST) <=

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