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

Re: How to generate char ",

Subject: Re: How to generate char ",
From: Dan Morrison <dman@xxxxxxxx>
Date: Wed, 21 Jun 2000 04:43:41 +1200
delete onclick
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(&quot;loc_del_1&quot;)" >

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


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