On Fri, 10 Jan 2003, J�rg Walter wrote:

> 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?

TaglibHelper can do boolean tags. It might make sense to just look how it
does it, or it might make sense for Kjetil to write his taglib using
TaglibHelper instead of SimpleTaglib (I think the name is a bit of a
misnomer myself ;-).

-- 
<!-- Matt -->
<:->get a SMart net</:->
Spam trap - do not mail: [EMAIL PROTECTED]


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

Reply via email to