Kevin Dangoor, el martes 13 de diciembre a las 14:03 me escribiste:
>
> On 12/13/05, David Stanek <[EMAIL PROTECTED]> wrote:
> > Yep. With XML the > is a legal character in an attribute value, while < is
> > not[0]. It would be nice to have Kid encode things before they get passed to
> > the parser. So we could get something like this to work:
> >
> > <div py:if="${ulevel <= 0}">
> >
> > But I am not sure how good of an idea this would be. I'll bring it up on
> > the Kid mailing list after I think about it for a bit.
> >
> > [0]
> > http://www.w3.org/TR/2004/REC-xml-20040204/#NT-AttValue
>
> That's a really tough call. Doing that would mean that the template
> itself is no longer valid XML (or XHTML), which is not a pleasant
> thought. Of course, <= 0 is also not pleasant, so one of the two
> will have to give.
Maybe translating alternative operators? Maybe use test-like operators:
lt --> <
le --> <=
gt --> >
ge --> >=
(the last 2 are not really needed, of course)
This is not good either, is some kind of workarround in the middle of the
other 2.
Maybe we just have to live with Boole's algebra:
<div py:if="${!(ulevel > 0)}">
=)
--
Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/
.------------------------------------------------------------------------,
\ GPG: 5F5A8D05 // F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05 /
'--------------------------------------------------------------------'
Demasiado lento para una estrella fugaz
Demasiado limpio para lo que vos acostumbras
Demasiado claro para tanta oscuridad
Demasiados sueƱos, poca realidad