The Eclipse IDE can be used to assist a user in the authoring of DFDL schemas. This page contains instructions for setting up the Eclipse Integrated-Development-Environment (IDE), and to configure its XML editing features so that they provide some level of support for authoring DFDL schemas.
DFDL extends a subset of XML Schema. Note however: an XML Schema is an XML document.
Now, turns out there is an XML Schema for DFDL Schemas. It was created by taking the XML Schema for XML Schemas, and subsetting it to just what DFDL uses, and then adding into it the XML Schema for DFDL’s annotation objects.
The XML settings all assume you have installed Eclipse’s XML support. If not already installed, the “Eclipse XML Editors and Tools” plugin can be Eclipse’s update site.
Following are steps to modify the Eclipse XML settings to aid in the creation of DFDL schemas:
If also editing TDML file in Eclipse, repeat the above steps, replacing all instances of
Download the following files to a local directory. Alternatively, these files are included in the Daffodil source code in the
src/main/resources/org/apache/daffodil/xsd/ directory in either
Modify the Eclipse settings to reference these files:
For each of the following files, select ‘Add..’ and provide the location on the ‘File System…’ or ‘Workspace…’, along with the key and key type
|XMLSchema.dtd||Public ID||-//W3C//DTD XMLSCHEMA 200102//EN|