From: Andreas L. Delmelle Date: Wed, 7 May 2008 17:41:07 +0000 (+0000) Subject: Added comment X-Git-Tag: fop-1_0~655 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=92e9727bae29acaa5d7567ebef7ca3fd9fd41d2d;p=xmlgraphics-fop.git Added comment git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@654190 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/fo/flow/Wrapper.java b/src/java/org/apache/fop/fo/flow/Wrapper.java index dfe837315..5ed594ecc 100644 --- a/src/java/org/apache/fop/fo/flow/Wrapper.java +++ b/src/java/org/apache/fop/fo/flow/Wrapper.java @@ -67,8 +67,13 @@ public class Wrapper extends FObjMixed { "(#PCDATA|%inline;|%block;)"); } } else if (isBlockOrInlineItem(nsURI, localName)) { + /* delegate validation to parent, but keep the error reporting + * tidy. If we would simply call validateChildNode() on the + * parent, the user would get a wrong impression, as only the + * locator (if any) will contain a reference to the offending + * fo:wrapper. + */ try { - //delegate validation to parent FONode.validateChildNode(this.parent, loc, nsURI, localName); } catch (ValidationException vex) { invalidChildError(loc, getName(), FO_URI, localName, "rule.wrapperInvalidChildForParent");