Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-2370

XSD definition of instream-foreign-object does not allow child elements

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.1
    • None
    • renderer/svg

    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:

      http://www.utilities-online.info/xsdvalidation/?save=9af7d176-9003-421b-abf9-8d4f71e78254-xsdvalidation

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            BarrierBank Anthony Hayward
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: