|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








