You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2012/03/29 22:55:07 UTC
DO NOT REPLY [Bug 53005] New: indexterm inside a footnote from
docbook
https://issues.apache.org/bugzilla/show_bug.cgi?id=53005
Bug #: 53005
Summary: indexterm inside a footnote from docbook
Product: Fop
Version: 1.0
Platform: PC
OS/Version: Mac OS X 10.4
Status: NEW
Severity: normal
Priority: P2
Component: fo tree
AssignedTo: fop-dev@xmlgraphics.apache.org
ReportedBy: hashashin@gmail.com
Classification: Unclassified
Was getting this error:
javax.xml.transform.TransformerException:
org.apache.fop.fo.ValidationException: "fo:inline" is not a valid child of
"fo:block"! (See position 1870:716)
After talking with the folks in the docbook XSLT mailing list, they helped me
finding out that:
""
Based on the .fo file that Alberto sent to me, this appears to be a bug in FOP
1.0. I can reproduce it by putting an indexterm inside an inline element
inside a footnote. In general, an indexterm generates an fo:wrapper element to
hold the indexterm id marker. When this fo:wrapper is inside an fo:inline, it
appears to confuse FOP, but only when inside a footnote. Removing the
fo:wrapper removes the error. All other locations with that construction do
not generate an error. Two other XSL-FO processors did not produce an error.
""
Somebody added:
""
FYI, until recently indexterms were not allowed inside footnotes at all:
http://www.docbook.org/tdg5/en/html/footnote.html
They are allowed with v5.1:
http://www.docbook.org/tdg51/en/html/footnote.html
""
Thank you,
Alberto
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 53005] indexterm inside a footnote from docbook
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53005
Alberto Simões <ha...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
--- Comment #4 from Alberto Simões <ha...@gmail.com> 2012-04-02 20:08:01 UTC ---
Hey,
Sorry for taking so much time, but I got some trouble on finding the portion
that was giving trouble.
I attached the docbook file, and the generated fo file. I can't attach the XSLT
files, as they are too many :)
Please let me know how/if I can help.
Thank you
Alberto
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 53005] indexterm inside a footnote from docbook
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53005
Pascal Sancho <pa...@takoma.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
--- Comment #1 from Pascal Sancho <pa...@takoma.fr> 2012-03-30 08:15:04 UTC ---
Please,
can you:
1/ reformulate short description matching FOP vocabulary (indexterm and
docbook are not handled by FOP)?
2/ attach a short XSL-FO (xml + xslt result) that demonstrates the issue?
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 53005] wrapper is not a block item
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53005
--- Comment #7 from Glenn Adams <gl...@skynav.com> 2012-04-02 21:59:28 UTC ---
Created attachment 28534
--> https://issues.apache.org/bugzilla/attachment.cgi?id=28534
minimal FO test file
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 53005] wrapper is not a block item
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53005
Glenn Adams <gl...@skynav.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #8 from Glenn Adams <gl...@skynav.com> 2012-04-03 16:39:02 UTC ---
http://svn.apache.org/viewvc?view=revision&revision=1309024
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 53005] wrapper is not a block item
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53005
Glenn Adams <gl...@skynav.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|indexterm inside a footnote |wrapper is not a block item
|from docbook |
--- Comment #5 from Glenn Adams <gl...@skynav.com> 2012-04-02 21:56:38 UTC ---
this bug is due to isBlockItem() returning true for wrapper
} else if (!canHaveBlockLevelChildren && isBlockItem(nsURI,
localName)) {
invalidChildError(loc, getParent().getName(), nsURI, getName(),
"rule.inlineContent");
} else {
in particular isBlockItem() returns true for block *or* neutral, so this
condition needs to be further qualified as:
} else if (!canHaveBlockLevelChildren && isBlockItem(nsURI,
localName)
&& !isNeutralItem(nsURI, localName)) {
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 53005] wrapper is not a block item
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53005
Glenn Adams <gl...@skynav.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #28533|0 |1
is obsolete| |
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 53005] indexterm inside a footnote from docbook
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53005
--- Comment #2 from Alberto Simões <ha...@gmail.com> 2012-04-02 20:04:53 UTC ---
Created attachment 28532
--> https://issues.apache.org/bugzilla/attachment.cgi?id=28532
Generated FO file
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 53005] wrapper is not a block item
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53005
--- Comment #6 from Glenn Adams <gl...@skynav.com> 2012-04-02 21:57:14 UTC ---
(In reply to comment #5)
> this bug is due to isBlockItem() returning true for wrapper
>
> } else if (!canHaveBlockLevelChildren && isBlockItem(nsURI,
> localName)) {
> invalidChildError(loc, getParent().getName(), nsURI, getName(),
> "rule.inlineContent");
> } else {
>
> in particular isBlockItem() returns true for block *or* neutral, so this
> condition needs to be further qualified as:
>
> } else if (!canHaveBlockLevelChildren && isBlockItem(nsURI,
> localName)
> && !isNeutralItem(nsURI, localName)) {
see Inline.java:120
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 53005] wrapper is not a block item
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53005
Glenn Adams <gl...@skynav.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #28532|0 |1
is obsolete| |
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 53005] indexterm inside a footnote from docbook
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53005
--- Comment #3 from Alberto Simões <ha...@gmail.com> 2012-04-02 20:05:19 UTC ---
Created attachment 28533
--> https://issues.apache.org/bugzilla/attachment.cgi?id=28533
Original DocBook document
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.