daffodil icon indicating copy to clipboard operation
daffodil copied to clipboard

WIP: Feature to provide a dfdlx:schema that wraps an XSD-based DFDL schema

Open mbeckerle opened this issue 3 years ago • 2 comments

This provides better support for writing DFDL schemas from ordinary XML infrastructure in IDEs/Tools.

Fix incorrect URI

Removed dfdl-config-format.xsd

This was redundantly defining the dafext namespace. Unusable that way in conjunction with the dafext.xsd file.

Nothing was including/importing this file anyway.

Moved the one definition in it, of dfdlConfig to dafext.xsd.

Provided xsi:schemaLocation in the XML files that contained dfdlConfig elements.

Correct invalid tdml files that should be valid.

Mostly this is missing definitions for ex:, tns: and dfdlx:

DAFFODIL-1638

Provide dfdlx:schema element which allows for IDE support.

By creating dfdlx:schema in files with extension ".dfdl" (not ".dfdl.xsd") you can edit the schema in an IDE, and get full support because the IDE's own XSD support doesn't get in the way.

You must setup the IDE so ".dfdl" files are treated as XML just as you do with ".tdml" files. Then turn off XML Schema Validation, but leave turned on XML validation.

mbeckerle avatar Jan 04 '22 18:01 mbeckerle

Looks OK, but tests fail when generating example files so will wait until that's fixed before reviewing.

tuxji avatar Jan 04 '22 18:01 tuxji

I didn't even want to create PRs for these, but github won't shut up about various of my "parked" things pushed to my fork, which are really just pushed there for backup.

On Tue, Jan 4, 2022 at 1:42 PM John Interrante @.***> wrote:

Looks OK, but tests fail when generating example files so will wait until that's fixed before reviewing.

— Reply to this email directly, view it on GitHub https://github.com/apache/daffodil/pull/720#issuecomment-1005075916, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALUDA2FZXQ32F76RS4TG7DUUM5PXANCNFSM5LIBYVDA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

mbeckerle avatar Jan 04 '22 18:01 mbeckerle

Closed as inactive.

mbeckerle avatar Feb 06 '24 19:02 mbeckerle