An element reference provides a reference to a global element. A declaration that references a global element enables the referenced global element to appear in the instance document in the context of the referencing declaration.
You can modify the contents of your global element directly via an element reference. For example, you can add attributes and attribute reference to an element reference, but they are actually being added to your global element.
The menu option to add an element reference only appears if there are global elements defined elsewhere in the document.The following instructions were written for the Resource perspective, but they will also work in many other perspectives.
To add an element reference, follow these steps:
Related tasks
Adding a global element