diff options
Diffstat (limited to 'src/java/org/apache/fop/fo/pagination/Title.java')
-rw-r--r-- | src/java/org/apache/fop/fo/pagination/Title.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/fo/pagination/Title.java b/src/java/org/apache/fop/fo/pagination/Title.java index 70a24b9cc..5ebc2b144 100644 --- a/src/java/org/apache/fop/fo/pagination/Title.java +++ b/src/java/org/apache/fop/fo/pagination/Title.java @@ -18,6 +18,10 @@ package org.apache.fop.fo.pagination; +// XML +import org.xml.sax.Attributes; +import org.xml.sax.Locator; + // FOP import org.apache.fop.datatypes.ColorType; import org.apache.fop.datatypes.Length; @@ -46,6 +50,16 @@ public class Title extends FObjMixed { super(parent); } + /** + * @see org.apache.fop.fo.FONode#validateChildNode(Locator, String, String) + XSL/FOP: (#PCDATA|%inline;)* + */ + protected void validateChildNode(Locator loc, String nsURI, String localName) { + if (!isInlineItem(nsURI, localName)) { + invalidChildError(loc, nsURI, localName); + } + } + private void setup() { // Common Accessibility Properties |