[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: How to generate char ",
Jeni Tennison wrote: > > Sivaji, > > >I am lokking for the html > > like > > > ><input type = "button" value = " delete " onClick = > "chgdelete("loc-del_1")" > > > I think you mean: > > <input type = "button" value = " delete " > onClick = "chgdelete("loc_del_1")" > I sincerely doubt this is what he's looking for - it might make the decent HTML parsers stop objecting, but it would achieve less than zero on the page. When playing with nested scripts, you generally just have to swap your single and double quotes a bit, and backslash the rest... ... <input type = "button" value = "delete" onClick="chgdelete('loc_del_1')" /> <input type = 'button' value = 'delete' onClick='chgdelete("loc_del_1")' /> ... I've done stranger things on my parser... or if you're going to want to put parameters in there somewhere, perhaps this would be more versatile in the long run: ... <input type = "button" value = "delete" ><xsl:attribute name="onClick" >chgdelete('loc_del_<xsl:value-of select="whatever" />')</xsl:attribute ></input> ... Note no free whitespace in that above paragraph! I broke the lines strangely on purpose so it would sort of survive the email. Hopefully that will mean that most of todays parsers will be happy compressing it to <input ,,, /> instead of <input ,,,></input> .dan. 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
|