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

SAX of a richtext value using #valueToSAX do not generate sax events

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 4.3.0
    • None
    • None
    • None
    • 4.3 RC2

      The input stream of a richtext is saxed as a String data.
      The XML value is not parsed.

      So it is not possible to apply XSL transformation when rendering the value.

      Indeed, when saxing a view with a richtext attribute using DataHolder.dataToSax, the result is currently :

      <attributes>
           <description>
                 "<?xml version="1.0" encoding="UTF-8"?><docbook:article><para>Texte</para></docbook:article>"
           </description>
      </attributes>
       

      It should be :

      <attributes>
           <description>
                <docbook:article>
                        <para>Texte</para>
                </docbook:article>
           </description>
      </attributes>
       

       

       

            cbayle Caroline Bayle
            laurence Laurence Aumeunier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: