NAME

AxKit::XSP::IfParam - Equivalent of XSP Param taglib, but conditional.

SYNOPSIS

Add the taglib to AxKit (via httpd.conf or .htaccess):

AxAddXSPTaglib AxKit::XSP::IfParam

Add the if-param: namespace to your XSP <xsp:page> tag:

<xsp:page
     language="Perl"
     xmlns:xsp="http://apache.org/xsp/core/v1"
     xmlns:if-param="http://axkit.org/NS/xsp/if-param/v1"
     xmlns:param="http://axkit.org/NS/xsp/param/v1"
>

Then use the tags:

<if-param:foo>
  Someone sent a foo param! Value was: <param:foo/>
</if-param:foo>

DESCRIPTION

This library is almost exactly the same as the XSP param taglib, except it gives conditional sections based on parameters. So rather than having to say:

<xsp:logic>
if (<param:foo/>) {
  ...
}
</xsp:logic>

You can just say:

<if-param:foo>
  ...
</if-param>

Which makes life much easier.

AUTHOR

Matt Sergeant, matt@axkit.com

LICENSE

This software is Copyright 2001 AxKit.com Ltd.

You may use or redistribute this software under the same terms as Perl itself.