On Thursday, 09. January 2003 21:40, Kjetil Kjernsmo wrote:

> The true and false element I introduced works well if the content is
> simple text, but if I enclose text in a ((X)HTML) element, e.g.
>       <auth:true><strong>Password is valid</strong></auth:true>
> ....it fails.

Sorry to say, but SimpleTaglib (which AxKit::XSP::Auth is based on) does not 
support arbitrary content tags, at least not that easy. You will have to do 
do tricks with "sub TAGNAME__open" or something like that to put your "if 
($true) {" wrapper around the content. How exactly to do this depends on how 
you implemented your current idea. Look at the manual page for 
Apache::AxKit::Language::XSP::SimpleTaglib to see what it offers. Being the 
developer of both, I would also be happy to take a look at the source and 
make suggestions on how to do that.
Another idea that strikes me, wouldn't it be handy instead to have a generic 
taglib that serves the same purpose? Not just AxKit::XSP::Auth has true/false 
tags. Didn't think further about that yet, but what do you think?

-- 
CU
  Joerg

PGP Public Key at http://ich.bin.kein.hoschi.de/~trouble/public_key.asc
PGP Key fingerprint = D34F 57C4 99D8 8F16 E16E  7779 CDDC 41A4 4C48 6F94


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to