Beware of xml :)
Shorten is a "as is" operator, and will shorten crudely your xml text, counting tags as simple text, and producing seemingly strange output.
A solution is to use the Php strip_tags operator, as follows :
{def $xml_content=$node.data_map.champ_xml.data_text}
{def $text_content=$xml_content|strip_tags()}
{$text_content|shorten(100)}In order to be able to use strip_tags, you have to add it to authorized eZ template operators. Edit the template.ini.append.php file of your siteaccess (create it if it does not exist), and add
[PHP] PHPOperatorList[strip_tags]=strip_tags
Forum links :
http://ez.no/community/forum/setu...g_text_from_summarizing_ezxmltext__1
http://ez.no/community/forum/deve...e_item_shorten_100_is_not_working__1