Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-2403

Create an XSL helper stylesheet to facilitate content rendering

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major Major
    • 3.3
    • 3.0
    • I/O
    • None

      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) = '&#160;' 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.

            ngavalda Nicolas Gavalda (Inactive)
            ngavalda Nicolas Gavalda (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: