[ZPT] Nesting a Tag in CSS

Chris Withers chrisw@nipltd.com
Thu, 10 Oct 2002 10:31:17 +0100


Martijn Pieters wrote:
> Templates are supposed to be meaningful even when unrendered. This means
> that a template cannot break the rules of HTML, which state that <style> and
> <script> tags can *only* contain text content.

Would the following be OK?

<style type="text/css">
p {
     color: <tal:x replace="request/bodycolor">red</tal:x>;
}
</style>

..since the only tags are in another namespace?

cheers,

Chris