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>

        Activity

        Show
        Vidar Langseid added a comment - PR : https://github.com/ezsystems/ezplatform-xmltext-fieldtype/pull/68
        Show
        Vidar Langseid added a comment - Merged to master in https://github.com/ezsystems/ezplatform-xmltext-fieldtype/commit/613f91712ab7872f31de5968eceab18d9eba3497

          People

          • Assignee:
            Unassigned
            Reporter:
            Vidar Langseid
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: