When reusing elements from eppo simple structures, you can choose to use either the type or the group:
A type requires you to define an element in your own schema and then assign it that type.
A group includes one or more elements that are already defined. You just include the group where you want those elements to occur.
Choose a type if:
- You want exactly one element in that location and you want to control what it is called.
Choose a group if:
- You want to accept the name of the element as defined in the source.
- You a willing to accept more than one element at that location.
This latter consideration can be important where you are defining a component that can accept other components as children. For instance, you might be defining a structure that can contain admonitions. The set of admonitions that are appropriate might vary between different schemas that use your structure. Therefore you want to include admonitions using the admonitions group, not by defining your own admonitions elements and using the admonitions type.
groups with the same name as the structure are used to select that group regardless of which version of the structure is selected by the enclosing sechema.
groups with dotted names are used to select a specific version of a structure regardless of what the enclosing schema uses.
When reusing elements from eppo simple structures, you can choose to use either the type or the group:
A type requires you to define an element in your own schema and then assign it that type.
A group includes one or more elements that are already defined. You just include the group where you want those elements to occur.
Choose a type if:
Choose a group if:
This latter consideration can be important where you are defining a component that can accept other components as children. For instance, you might be defining a structure that can contain admonitions. The set of admonitions that are appropriate might vary between different schemas that use your structure. Therefore you want to include admonitions using the admonitions group, not by defining your own admonitions elements and using the admonitions type.
groups with the same name as the structure are used to select that group regardless of which version of the structure is selected by the enclosing sechema.
groups with dotted names are used to select a specific version of a structure regardless of what the enclosing schema uses.