mpf:xml | importas=taglib
this lets you create libraries of "formatter" elements. these are template-"snippets" that may be used to bring content in corporate shape. in addition you may use such libraries for automatic conversion of xml-files
Accessing Variables
use token-structure as shown below to display a list of all xml-tags in formatter tag-library or lookup a values of a specific xml-tag

 |  |  |
 |
/ | [mytagoption]  | |
tag | formatter-tag name |
type | formatter-tag type is "open" or "close" (open|close) |
data | value of formatter-tag |
|
/ | [type]  | |
you may list values from list by tag-type [type]. valid types are "open" and "close"
|
/ | [tag]  | |
you may lookup values from list by tag-type [type], follwed by "tag"-name [tag]
|
|| | count | |
use this parameter to count number of items in list (a list/array will not be initialized)
|
|| | recs=[number] | |
this parameter is for use of integrated page partitioning. in combination with "count"-parameter token will return number of pages
|
|| | page=[number] | |
use this parameter to access pages if "recs"-parameter is set to restrict number of records per page
|
|| |
convert=[lowercase|uppercase|upperfirst]
|
|
convert value string
|
|| |
encode=[url|html|html-chars|crypt]
|
|
encode value to another format
|
|| |
trim=[left|right|both]
|
|
remove whitespaces from value
|
|| |
convert_section=[lowercase|uppercase|upperfirst]
|
|
convert section data (for use with closing token only)
|
|| |
parse_section=[yes|no]
|
|
parse section data for mpf-tokens (for use with closing token only)
|
|| |
encode_section=[url|html|html-chars|crypt]
|
|
encode section data to another format (for use with closing token only)
|
|| |
trim_section=[left|right|both]
|
|
remove whitespaces from section data (for use with closing token only)
|
|| |
[opr][condition]
|
|
condition may be used to check value
|
|  |  |  |  |
|