[ZPT] Composer question
Casey Duncan
casey@zope.com
Fri, 13 Dec 2002 14:02:21 -0500
AFAIK the HTML spec only allows <option> inside <select>, so composer is =
just=20
enforcing the spec. So you'll probably need to put the repeat on the opti=
on=20
tag and move the python expression from the tal:define into tal:attribute=
s.
-Casey
On Thursday 12 December 2002 04:22 am, Jean Jordaan wrote:
> Hi all
>=20
> I've discovered that Composer in
> Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20021212
> discards <tal:block ..> style code. I guess that's OK, though I
> really like the <tal:block ..> idiom. Something else bugs me more
> though. In the following, Composer discards the <span ..> tags::
>=20
> <select name=3D"Country">
> <span tal:repeat=3D"country_item here/interface/country_list">
> <option value=3D""
> tal:define=3D"selected python:(feko_user.Country =3D=3D co=
unt=20
> ry_item and 'selected') or ''"
> tal:attributes=3D"value country_item; selected selected"
> tal:content=3D"country_item">country_name
> </option>
> </span>
> </select>
>=20
> That can't be right, can it? Is SPAN not a valid tag there?
>=20
> --=20
> Jean Jordaan
> http://www.upfrontsystems.co.za