diff options
author | Andreas L. Delmelle <adelmelle@apache.org> | 2009-01-22 21:53:52 +0000 |
---|---|---|
committer | Andreas L. Delmelle <adelmelle@apache.org> | 2009-01-22 21:53:52 +0000 |
commit | dafacc3ff595328433b87b0c75bc706b2d451aa2 (patch) | |
tree | 75baef494c7769a01a936db010d6f007f233e21e /src | |
parent | cc2a5e8e3c2059b96df89497cb00c3d5a2583d15 (diff) | |
download | xmlgraphics-fop-dafacc3ff595328433b87b0c75bc706b2d451aa2.tar.gz xmlgraphics-fop-dafacc3ff595328433b87b0c75bc706b2d451aa2.zip |
Bugzilla 46567: fo:marker in fo:table-row produced a ValidationException
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@736813 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/java/org/apache/fop/fo/flow/table/TableRow.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/fo/flow/table/TableRow.java b/src/java/org/apache/fop/fo/flow/table/TableRow.java index a40b550bc..2feb45d86 100644 --- a/src/java/org/apache/fop/fo/flow/table/TableRow.java +++ b/src/java/org/apache/fop/fo/flow/table/TableRow.java @@ -128,7 +128,12 @@ public class TableRow extends TableCellContainer implements BreakPropertySet { String localName) throws ValidationException { if (FO_URI.equals(nsURI)) { - if (!localName.equals("table-cell")) { + if ("marker".equals(localName)) { + if (this.firstChild != null) { + //a table-cell has already been added to this row + nodesOutOfOrderError(loc, "fo:marker", "(table-cell+)"); + } + } else if (!"table-cell".equals(localName)) { invalidChildError(loc, nsURI, localName); } } |