]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
changes to support named destination
authorJay Bryant <jbryant@apache.org>
Sun, 1 Apr 2007 14:49:12 +0000 (14:49 +0000)
committerJay Bryant <jbryant@apache.org>
Sun, 1 Apr 2007 14:49:12 +0000 (14:49 +0000)
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

index 48a8d3bdf9a02c5b5278169262d69bb611752cd5..5dc5ee67c2466f2bcaaf443c480220fde70eb6c8 100644 (file)
@@ -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;)");