Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
1.1
-
None
Description
The XSD does not allow any child elements of instream-foreign-object, so any XSL-FO file with a non-empty instream-foreign-object element will fail XML Schema validation. Should <xs:any/> be added?
I validated this example:
http://xmlgraphics.apache.org/fop/dev/fo/embedding.fo
Against this XSD:
http://svn.apache.org/repos/asf/xmlgraphics/fop/trunk/src/foschema/fop.xsd
Using this tool:
http://www.utilities-online.info/xsdvalidation/#.U2oom1fo7FQ
The result was:
Not valid.
Error - Line 769, 30: org.xml.sax.SAXParseException; lineNumber: 769; columnNumber: 30; cvc-complex-type.2.1: Element 'fo:instream-foreign-object' must have no character or element information item [children], because the type's content type is empty.
Error - Line 841, 30: org.xml.sax.SAXParseException; lineNumber: 841; columnNumber: 30; cvc-complex-type.2.1: Element 'fo:instream-foreign-object' must have no character or element information item [children], because the type's content type is empty.
Error - Line 881, 30: org.xml.sax.SAXParseException; lineNumber: 881; columnNumber: 30; cvc-complex-type.2.1: Element 'fo:instream-foreign-object' must have no character or element information item [children], because the type's content type is empty.
Error - Line 920, 30: org.xml.sax.SAXParseException; lineNumber: 920; columnNumber: 30; cvc-complex-type.2.1: Element 'fo:instream-foreign-object' must have no character or element information item [children], because the type's content type is empty.
Error - Line 978, 30: org.xml.sax.SAXParseException; lineNumber: 978; columnNumber: 30; cvc-complex-type.2.1: Element 'fo:instream-foreign-object' must have no character or element information item [children], because the type's content type is empty.
Error - Line 1017, 30: org.xml.sax.SAXParseException; lineNumber: 1017; columnNumber: 30; cvc-complex-type.2.1: Element 'fo:instream-foreign-object' must have no character or element information item [children], because the type's content type is empty.
Error - Line 1055, 30: org.xml.sax.SAXParseException; lineNumber: 1055; columnNumber: 30; cvc-complex-type.2.1: Element 'fo:instream-foreign-object' must have no character or element information item [children], because the type's content type is empty.