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

EzXmlText to RichText validation error : Element section has extra content on <literal> tag

    XMLWordPrintable

    Details

      Description

      I try to use command ezxmltext:convert-to-richtext of the bundle EzPlatformXmlTextFieldTypeBundle.

      I have the following error with a lot of inputs return by the validator :
      Error in 0:0: Element section has extra content: para

      An example of input :

      <?xml version="1.0" encoding="utf-8"?>\n
      <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>Consultez la carte ci dessous pour les informations trafic autoroutier en temps réel.</paragraph>
      <paragraph>(Nous fournir la source du flash SVP)</paragraph>
      <paragraph xmlns:tmp="http://ez.no/namespaces/ezpublish3/temporary/">
      <literal class="html">...</literal>
      </paragraph>
      </section>

      The xml output by the convert :

      <section
      xmlns="http://docbook.org/ns/docbook"
      xmlns:xlink="http://www.w3.org/1999/xlink"
      xmlns:ezxhtml="http://ez.no/xmlns/ezpublish/docbook/xhtml"
      xmlns:ezcustom="http://ez.no/xmlns/ezpublish/docbook/custom" version="5.0-variant ezpublish-1.0">
      <para>Consultez la carte ci dessous pour les informations trafic autoroutier en temps réel.</para>
      <para>(Nous fournir la source du flash SVP)</para>
      ...
      </section>

      The following error can also appear :
      Error in 0:0: Element section has extra content: informaltable

      More examples that end up with informaltable and para errors can be found in the attached XML files.

        Attachments

        1. example3.xml
          20 kB
        2. example2.xml
          1 kB
        3. example1.xml
          4 kB

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              vfaisse Faïsse Valentin
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: