Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DFDL-78

Eclipse support not flagging validation error in DFDL schemas

XMLWordPrintableJSON

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • deferred
    • None
    • Infrastructure
    • None

      Our test schemas (AA.dfdl.xsd to BG.dfdl.xsd) are full of a referential integrity error.

      They use the default unprefixed namespace as the XSD namespace, but then also assume intra-schema references can use unqualified names. This is an error.

      There are two other bugs related. One is that Daffodil itself is validating the incoming schemas, and not catching this error. Another is that the example schemas have the error and need to be fixed.

      This bug is that Eclipse's schema support also isn't finding this error. A fix would be to figure out eclipse settings or changes to the XMLSchemaSubset schema that will make it really catch these errors for us interactively when editing the schemas. This may be as simple as setting some option we're not setting currently, or it could turn out to not be possible to fix.

      Example:

      <schema xmlns="http://www.ogf.org/dfdl/dfdl-1.0/XMLSchemaSubset"
      targetNamespace="http://example.com">

      <element name="foo" type="bar"/><!-- IS THIS LEGAL, no prefix on name of the type. -->

      <complexType name="bar">
      <sequence/>
      </complexType>

      </schema>

              Unassigned Unassigned
              mbeckerle.dfdl Mike Beckerle
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: