Bug 49763 - Regression: Incorrect message when encountering a block in an inline in a footnote
Summary: Regression: Incorrect message when encountering a block in an inline in a foo...
Status: RESOLVED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: general (show other bugs)
Version: 1.0
Hardware: All All
: P3 minor
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-17 10:59 UTC by Adrian Buza
Modified: 2012-04-07 20:25 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Buza 2010-08-17 10:59:14 UTC
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.
Comment 1 Glenn Adams 2012-04-07 01:44:17 UTC
resetting P2 open bugs to P3 pending further review