[
https://issues.apache.org/jira/browse/DAFFODIL-2593?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17453020#comment-17453020
]
Mike Beckerle commented on DAFFODIL-2593:
-----------------------------------------
There is a built in include file in Daffodil that has a good starter set of
properties.
I personally prefer to see people use that, vs. starting their schema with a
giant list of properties.
Looks like this:
{code:xml}
<xs:include
schemaLocation="org/apache/daffodil/xsd/DFDLGeneralFormat.dfdl.xsd"/>
<xs:annotation>
<xs:appinfo source="http://www.ogf.org/dfdl/">
<dfdl:format
ref="tns:GeneralFormat"
binaryBooleanFalseRep="0"
binaryBooleanTrueRep=""
binaryNumberRep="binary"
lengthUnits="bits"
prefixIncludesPrefixLength="no"
representation="binary"/>
</xs:appinfo>
</xs:annotation>
{code}
Then, given that include comes first, the user only has to express the deltas
from it, and I'd suggest they pick a "theme" like binary data or textual data,
fixed length, or delimited length, and have the guidance be biased toward those
settings.
In general I always suggest to users that the default format be a named defined
format in a separate file, and that it is imported/included into the other
schema files, and I would suggest that even if they are defining their own from
scratch.
> VS Code extension for Auto-Completion of DFDL Schemas
> -----------------------------------------------------
>
> Key: DAFFODIL-2593
> URL: https://issues.apache.org/jira/browse/DAFFODIL-2593
> Project: Daffodil
> Issue Type: Brainstorming
> Components: DFDL Language, DFDL Schemas
> Reporter: Regis Thomas
> Assignee: Regis Thomas
> Priority: Minor
> Attachments: vscodeDFDLCompletion2.gif
>
>
> I am looking for some feedback on a work in progress on a VS Code Extension
> for DFDL language auto completion. The extension is based on a TypeScript
> sample. Attached is an animated GIF showing a schema written with the auto
> completion extension. The extension is still "plain-text" so no key word
> coloration. Any feedback/suggestions appreciated.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)