[Zpt] XHTML validation and <span>

Todd Coram todd@digicool.com
Fri, 9 Mar 2001 09:51:12 -0500


> The following is also illegal, for example:
>
>  <title>The title is:
>         <span tal:replace="here/title">object title</span>
>  </title>
>
> because only text is allowed inside <title>. The solution here is to use a
> well-aimed define, like: "python:'The title is: ' + here.title".

Or:

  <title tal:insert="string: The title is: ${here/title}">object
title</title>

in the (future) 1.0 implementation of TALES.

Evan, should this be legal? Should string: take paths as well as simple
variable names? 'Here' is a variable, so ${here} sort of makes sense. But,
'here/title' is a path....


-- todd