Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

Allow overriding context mappings in children elements #377

Open
dawagner opened this issue Oct 25, 2016 · 0 comments
Open

Allow overriding context mappings in children elements #377

dawagner opened this issue Oct 25, 2016 · 0 comments

Comments

@dawagner
Copy link
Contributor

When a context mapping key is defined in an element, the same key may not be defined again in a sub-element. This behaviour is useful to avoid a certain class of mistakes but the opposite is also sometimes useful when, in a large list of elements, a single elements stands out and has to override the context.

Example:

<ComponentType Name="T" Mapping="Key:Value">
...
</ComponentType>
...
<InstanceDefinition>
  <Component Name="1" Type="T"/>
  <Component Name="2" Type="T"/>
  <Component Name="3" Type="T"/>
  <Component Name="4" Type="T"/>
  <Component Name="5" Type="T"/>
  <Component Name="6" Type="T" Mapping="Key:SpecialValue"/>
</InstanceDefinition>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant