jw3 / example-daffodil-vscode

A VS Code extension for DFDL with Daffodil
Apache License 2.0
2 stars 3 forks source link

Language extension #42

Open jw3 opened 3 years ago

jw3 commented 3 years ago

We use the built-in XML language currently, which allows the DFDL XSD to be debugged, but also applies to other XML, like an infoset file.

Adding a DFDL extension should give ability to express schemas more precisely and will also support editing and other needs.

mbeckerle commented 2 years ago

By convention the extension for DFDL schemas is ".dfdl.xsd". Can that be made to work? i.e., be recognized and distinguished from just ".xsd"?

If not, I am not opposed to introducing ".dfdl" extension, we just lose the fact that they a DFDL schema is an XSD for people who are using "ordinary XSD tooling".

jw3 commented 2 years ago

@mbeckerle yes, associating *.dfd.xsd to the DFDL language should be possible through a combination of language extension mentioned in this issue and configuration settings, both of which would be delivered with the Daffodil extension.

Currently our extension uses the built in XML language, which handles Daffodil schemas, but could also grab other non-dfdl files.