-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to write extension to the code list and enumeration #245
Comments
Including an extension to a code list is not too difficult:
and the instance fragment looks like this:
Enumeration is a bit tricky, as it is of simple type. Give me some time to think of a solution. |
OK. For enumeration, we may want to implement extension as follow:
and the instance fragment looks like:
Views please? |
I am afraid that the proposed solution does not really help because the intention was to define a new phenomenon. The proposal still needs to pick one from the allowed phenomena. The possible solution can be definition of "fake extension phenomenon" as <iwxxm:presentWeather xlink:href="http://codes.wmo.int/306/4678/extensionPhenomenon">
<iwxxm:extension xlink:href="http://your.own.codes.registry/your/own/code/list/entry"/>
</iwxxm:presentWeather> I think it should pass the Schematron validation. The enumeration extension seems good for me. |
If you don't want to pick any entry in the main code list, you can make it nil:
I confirm that both proposals have passed schema and schematron validations.
You will need to have the schematron rule skip checking when it encounters |
not ready. |
Branch or PR for inclusion
[add when created]
Summary and Purpose
IWXXM extension was introduced in version 2 to facilitate producers to include information beyond the provisions in Annex 3. It is currently implemented only for XML elements derived from GML FeatureType, Type and DataType.
Stakeholder(s)
Reason
1. Need for an extension to XML elements derived from GML CodeList type
2. Need for an extension to XML elements derived from GML Enumeration type
We should describe if such extensions can be defined and how they should be defined.
Detailed proposal
For code lists the schema fragment may look like:
and the instance fragment looks like this:
or
For enumeration, the schema fragment may look like:
and the instance fragment looks like:
The text was updated successfully, but these errors were encountered: