can you give a try using xsl attribute ?

Hope this helps .

'<input>
            <xsl:attribute name="type">checkbox</xsl:attribute>
            <xsl:attribute name="class">chkPrice</xsl:attribute>
 </input>'

- Sankar

On 9/28/05, Chris McMahon <[EMAIL PROTECTED]> wrote:
Hi...

Sorry for the OT post, but this is driving me crazy...

I have an XML string that needs double-quotes, so to turn it into a
string, I enclose in single quotes.  It looks a little like this:

'<?xml version=" 1.0" encoding="UTF-8"...>'

But I also need to substitute a variable into the string with #{}, like so:

a = 123
'<?xml version="1.0" encoding="UTF-8"...#{a}...>'

but #{} doesn't work inside of single-quoted strings, and
double-quotes inside of double-quotes are illegal, and slashes also
don't work, i.e

a = 123
/<?xml version="1.0" encoding="UTF-8"...#{a}...>/

Any suggestions to substitute a string and use double-quotes
simultaneously in a single string?  I'm sure it's possible, I just
can't figure out how....
-Chris

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general



--
If you enjoy programming computers, you are in a very fortunate minority of people who can make a great living doing work they enjoy. - Joel
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to