Hello, I need to write out the character " How ? I can't do this: <dtml-let string="'<body bgcolor="#000000"'"> I have tried with: <dtml-let string="<body bgcolor=\"#000000\"'"> but that doesn't work either. How do I do it ? Gitte
Assuming DTML follows the same rules for strings as Python, the following should work: <dtml-let string="<body bgcolor=\"#000000\""> This should also work: <dtml-let string='<body bgcolor="#000000"'> Eric Balasbas Senior Developer eric@virtosi.com http://www.virtosi.com/ Virtosi Ltd. Design -- Branding -- Zope On Mon, 21 May 2001, Gitte Wange wrote:
Hello,
I need to write out the character " How ?
I can't do this: <dtml-let string="'<body bgcolor="#000000"'">
I have tried with: <dtml-let string="<body bgcolor=\"#000000\"'"> but that doesn't work either.
How do I do it ?
Gitte
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Gitte Wange] I need to write out the character " How ? I can't do this: <dtml-let string="'<body bgcolor="#000000"'"> I have tried with: <dtml-let string="<body bgcolor=\"#000000\"'"> but that doesn't work either. How do I do it ? [Tom] Why do you need to? If you do, what's wrong with <body bgcolor=''> ?? If you need to concatenate it with something else (why???), what's wrong with <dtml-let emptystring="''"> That's two single quotes inside a pair of double quotes. or, <dtml-let emptystring="\"\""> if you absolutely have to have double quotes. Don't go fooling around with zero bytes. Cheers, Tom P
Hi Gitte, you schould try to not have to assemble HTML-tags from dtml. Either use python methods or better use dtml only as template as it is supposed. <body bgcolor="color"> schould be substituted by CSS anyway. regards Tino --On Montag, 21. Mai 2001 15:06 +0200 Gitte Wange <gitte@mmmanager.org> wrote:
Hello,
I need to write out the character " How ?
I can't do this: <dtml-let string="'<body bgcolor="#000000"'">
I have tried with: <dtml-let string="<body bgcolor=\"#000000\"'"> but that doesn't work either.
How do I do it ?
Gitte
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (4)
-
Eric Balasbas -
Gitte Wange -
Thomas B. Passin -
Tino Wildenhain