New appinfo for attribute augmentation #68
iamdrscott
started this conversation in
General
Replies: 1 comment 1 reply
-
This is mainly targeted for domains using attribute augmentation for Core or another domain, right? A local reference model or an IEPD would just plug in the attribute directly into the original type in the subset. Should |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
New appinfo for attribute augmentation
An augmentation in a reference schema document expresses an opinion. For example, in the opinion of the Justice domain,
j:EducationTotalYearsText
is a possibly useful property fornc:EducationType
. An augmentation doesn't have real effect until a message designer selects it for his subset and puts it into a message schema.Suppose you are writing a reference schema document and want to say that element
Bar
is a possibly useful property in someFooType
. Then you declare an element substitutable for FooAugmentationPoint. Simple.Suppose you are writing a reference schema document and want to say that attribute
bar
is a possibly useful property in someFooType
. Now what do you do? Umm… well, nothing, at present. There is no way to do it. Attribute augmentations take effect in the augmented schema document; for example, line 9 in this niem-core.xsd fragment:We need a new bit of appinfo to fill this gap. It goes into the augmenting schema document, and looks like this:
The declaration in appinfo.xsd looks like this:
I have modified the augmentation examples in the ntac-admin repo accordingly. Look at:
Beta Was this translation helpful? Give feedback.
All reactions