xsl-list
[Top] [All Lists]

RE: [xsl] Conditional test is failing

2006-03-20 13:44:55

Gowri -> (do this experiment: Replace
the double and single quotes in my last example to
opposite(i.e double
quotes to single quotes and single quotes to double
quotes)

Thanks again, Sreeni. I did replace the quotes to see
how it works.

While we are on the subject of quotes, could I ask an
other related question?

In my XSL Stylesheet, this call to a JavaScript
function passing a variable works perfectly fine:

<a href='javascript:void(0);'
onClick="toggle('$vdd')">

My question is whether I can replace the $vdd with
<xsl:value select="voltage"/>

It didn't work for me when I did the following. I get
an XML parsing error that it's not well formed:

<a href='javascript:void(0);'
onClick="toggle('<xsl:value select="voltage"/>')">

Has it got to do with the way I am using the quotes,
or is it completely a different problem?

Regards,
Gowri






__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--