Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-1837

Regression: Incorrect message when encountering a block in an inline in a footnote

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • 1.0
    • None
    • unqualified
    • None
    • Operating System: All
      Platform: All
    • 49763

    Description

      When transforming an FO with this content:

      <footnote>
      <inline>1</inline>
      <footnote-body>
      <block><inline><block/></inline></block>
      </footnote-body>
      </footnote>

      The new FOP 1.0 incorrectly reports:
      net.sf.saxon.trans.XPathException: org.apache.fop.fo.ValidationException: "fo:inline" is not a valid child of "fo:block"! (See position 117:-1)

      while the old 0.95 was corect in saying:
      net.sf.saxon.trans.XPathException: org.apache.fop.fo.ValidationException: Error(117/-1): fo:block is not a valid child element of fo:inline: An fo:inline that is a descendant of an fo:leader or fo:footnote may not have block-level children, unless it has a nearer ancestor that is an fo:inline-container.

      Attachments

        Activity

          People

            fop-dev@xmlgraphics.apache.org fop-dev
            adrian@sync.ro Adrian Buza
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: