Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-29520

ezxmltext -> richtext conversion: docbook do not support <informaltable> below <table>

Details

    Description

      The xslt used by ezxmltext -> richtext conversion do not take into account that docbook do not allow <informaltable> below <table>

      The following ezxml will be converted incorrectly

      <?xml version="1.0" encoding="utf-8"?>
      <section
              xmlns:image="http://ez.no/namespaces/ezpublish3/image/"
              xmlns:xhtml="http://ez.no/namespaces/ezpublish3/xhtml/"
              xmlns:custom="http://ez.no/namespaces/ezpublish3/custom/">
          <paragraph
                  xmlns:tmp="http://ez.no/namespaces/ezpublish3/temporary/">
          </paragraph>
              <table custom:caption="some caption">
                  <tr>
                      <td>
                          <paragraph>table</paragraph>
                      </td>
                  </tr>
                  <tr>
                      <td>
                          <paragraph>
                              <table>
                                  <tr>
                                      <td>
                                          <paragraph>table because we cannot have informaltable below table</paragraph>
                                      </td>
                                  </tr>
                              </table>
                          </paragraph>
                      </td>
                  </tr>
              </table>
      

      Both the tables above should be converted as <table>, but the second one is converted into <informaltable>

      Attachments

        Activity

          People

            Unassigned Unassigned
            vidar.langseid@ibexa.co Vidar Langseid
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: