You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "stevedlawrence (via GitHub)" <gi...@apache.org> on 2023/08/29 15:26:14 UTC
[GitHub] [daffodil] stevedlawrence opened a new pull request, #1075: Require that dfdlx:repType references a global simple type definition
stevedlawrence opened a new pull request, #1075:
URL: https://github.com/apache/daffodil/pull/1075
Primitive types do not carry any DFDL properties and so do not make for very good repTypes. To support primitive types as a repType, all DFDL proprties would need to come from the general format, which would only make sense if a few specific cases.
Instead, we simply disallow primitive repTypes, instead requiring that repType be a QName to a simple global type definition, which DFDL properties can be put.
This creates a new function to create a helpful diagnostic when it is detected that a repType references a primitive type. Additionally, dfdl:prefixLengthType already has this restriction, and is modified to use this new helper function.
Deprecation/Compatibility:
dfdlx:repType can no longer reference primitive types (e.g. xs:int). Instead, a global simple type definition should be created with that has a base of the primitive type.
DAFFODIL-2211
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [daffodil] stevedlawrence merged pull request #1075: Require that dfdlx:repType references a global simple type definition
Posted by "stevedlawrence (via GitHub)" <gi...@apache.org>.
stevedlawrence merged PR #1075:
URL: https://github.com/apache/daffodil/pull/1075
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@daffodil.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org