Fop
  1. Fop
  2. FOP-1837

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

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: None
    • Component/s: general
    • Labels:
      None
    • Environment:
      Operating System: All
      Platform: All
    • External issue ID:
      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.

        Activity

        Adrian Buza created issue -

          People

          • Assignee:
            fop-dev
            Reporter:
            Adrian Buza
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development