You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Mike Beckerle (Jira)" <ji...@apache.org> on 2022/12/15 18:04:00 UTC

[jira] [Commented] (DAFFODIL-2716) giter8 schema project generator should create types file.

    [ https://issues.apache.org/jira/browse/DAFFODIL-2716?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17648186#comment-17648186 ] 

Mike Beckerle commented on DAFFODIL-2716:
-----------------------------------------

 

Should also generate shorter (1 letter) prefix rather than using the entire project name as a namespace prefix. 

> giter8 schema project generator should create types file. 
> ----------------------------------------------------------
>
>                 Key: DAFFODIL-2716
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2716
>             Project: Daffodil
>          Issue Type: Improvement
>          Components: Infrastructure
>    Affects Versions: 3.3.0
>            Reporter: Mike Beckerle
>            Assignee: Mike Beckerle
>            Priority: Major
>
> The daffodil-schema giter8 should create a slightly better schema.
>  
> There should be two schema files in a "namespaced" schema, named:
>  * main.dfdl.xsd
>  * types.dfdl.xsd
> The types file should include DFDLGeneralFormat.dfdl.xsd, and define a baseFormat type that references Daffodil's GeneralFormat.
> The types file should also use the baseFormat, as the types file is where we expect users to define types used by the main schema. 
> The main file should include types.dfdl.xsd, and use the baseFormat also. 
> This would allow users to get started without the logistics of how to break their schema into files. 
> Some XML comments explaining what the files are for (e.g., types.dfdl.xsd is for format definitions and reusable type definitions - to reduce the clutter and repetitiveness of the main schema) and also comments about what baseFormat is for, and that users should add the basic properties of their format that apply to everything in the definition of the base format, with some examples of what some of the properties might be (e.g., representation='binary' for a binary format).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)