Writing content rendering XSL can often be a pain in the ***, as the CMS lacks some helper functions like:
- Testing if a rich-text metadata is filled in. Currently, one must copy-paste the absolutely illegible and incomprehensible XSL test :
<xsl:if test="metadata/my-rich-text/docbook:article and not(normalize-space(metadata/my-rich-text/docbook:article/docbook:para) = ' ' and count(metadata/my-rich-text/docbook:article/*) = 1 and not(metadata/my-rich-text/docbook:article/*))">
- Outputting a multiline (textarea) string metadata. Currently, the "nl2br" utility function as duplicated in each application, because the CMS doesn't provide it.