You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by vh...@apache.org on 2007/12/13 20:17:13 UTC
svn commit: r603990 -
/xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/flow/table/Table.java
Author: vhennebert
Date: Thu Dec 13 11:17:12 2007
New Revision: 603990
URL: http://svn.apache.org/viewvc?rev=603990&view=rev
Log:
Throw a ValidationException if table-footer is put after table-body and the table uses the collapsing border model. The footer must be known to properly resolve borders.
Modified:
xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/flow/table/Table.java
Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/flow/table/Table.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/flow/table/Table.java?rev=603990&r1=603989&r2=603990&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/flow/table/Table.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/flow/table/Table.java Thu Dec 13 11:17:12 2007
@@ -192,9 +192,17 @@
tooManyNodesError(loc, "table-footer");
} else {
tableFooterFound = true;
- if (tableBodyFound && getUserAgent().validateStrictly()) {
- nodesOutOfOrderError(loc, "fo:table-footer",
- "(table-body+)");
+ if (tableBodyFound) {
+ if (getUserAgent().validateStrictly()) {
+ nodesOutOfOrderError(loc, "fo:table-footer", "(table-body+)");
+ } else if (!isSeparateBorderModel()) {
+ nodesOutOfOrderError(loc, "fo:table-footer", "(table-body+)."
+ + " This table uses the collapsing border"
+ + " model. In order to resolve borders in an efficient way"
+ + " the table-footer must be known before any table-body"
+ + " is parsed. Either put the footer at the correct place"
+ + " or switch to the separate border model");
+ }
}
}
} else if ("table-body".equals(localName)) {
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org