From 0622ab87fa8f8506221b6f09f1e1e9a58de7dac6 Mon Sep 17 00:00:00 2001 From: Jay Bryant Date: Sun, 1 Apr 2007 14:49:12 +0000 Subject: [PATCH] changes to support named destination git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@524603 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/fo/flow/Block.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/java/org/apache/fop/fo/flow/Block.java b/src/java/org/apache/fop/fo/flow/Block.java index 48a8d3bdf..5dc5ee67c 100644 --- a/src/java/org/apache/fop/fo/flow/Block.java +++ b/src/java/org/apache/fop/fo/flow/Block.java @@ -296,8 +296,11 @@ public class Block extends FObjMixed { * fo:inline-container." */ protected void validateChildNode(Locator loc, String nsURI, String localName) - throws ValidationException { - if (FO_URI.equals(nsURI) && localName.equals("marker")) { + throws ValidationException + { + if (FOX_URI.equals(nsURI) && localName.equals("destination")) { + // Found a fox:destination element - ignore it + } else if (FO_URI.equals(nsURI) && localName.equals("marker")) { if (blockOrInlineItemFound || initialPropertySetFound) { nodesOutOfOrderError(loc, "fo:marker", "initial-property-set? (#PCDATA|%inline;|%block;)"); -- 2.39.5