NAME
AxKit::App::TABOO::XSP::Language - Language management tag library for TABOO
SYNOPSIS
Add the language: namespace to your XSP <xsp:page>
tag, e.g.:
<xsp:page
language="Perl"
xmlns:xsp="http://apache.org/xsp/core/v1"
xmlns:language="http://www.kjetil.kjernsmo.net/software/TABOO/NS/Language"
>
Add this taglib to AxKit (via httpd.conf or .htaccess):
AxAddXSPTaglib AxKit::App::TABOO::XSP::Language
DESCRIPTION
This XSP taglib provides two tags to retrieve a structured XML fragment with all information of a single language or all languages of a certain type.
Apache::AxKit::Language::XSP::SimpleTaglib has been used to write this taglib.
Tag Reference
<get-language lang="foo"/>
This tag will replace itself with some structured XML containing all fields of languages of type foo
. It relates to the TABOO Data object AxKit::App::TABOO::Data::Language, and calls on that to do the hard work.
The root element of the returned object is cat:languages
and each language is wrapped in an element cat:language
and contains lang
and name
.
<get-languages/>
This tag will replace itself with some structured XML containing all languages. It relates to the TABOO Data object AxKit::App::TABOO::Data::Plurals::Languages, and calls on that to do the hard work.
The root element of the returned object is languages
and each language is wrapped in an element language
, and ordered alphabetically by local name.
<exists lang="foo"/>
This tag will check if a language allready exists. It is a boolean tag, which has child elements <true>
and <false>
. It takes a lang parameter, which may be given as an attribute or a child element named lang
, and if the language is found in the data store, the contents of <true>
child element is included, otherwise, the contents of <false>
is included.
FORMALITIES
See AxKit::App::TABOO.