The uses
tag is designed to automatically include files when a certain element, interface, behavior, or attribute is used. This could be when instantiating an element in your document, or when inheriting from one in a TDL definition. For example, say you want to create a new element called myElm
. This element implements the interface iInput
that is defined in a file called iInput.xml
. In order to automatically load this file when the iInput
interface is implemented, you must include its definition with the uses
tag.
<d:namespace xmlns:d="http://www.backbase.com/2006/tdl" xmlns:sq="http://www.squaringthecircles.com/squared" name="http://www.squaringthecircles.com/squared"> <d:uses interface="iInput" src="iInput.xml" /> <d:uses element="inheritedTag" src="extrafile.xml" /> <d:uses behavior="specialBehavior" src="extrafile.xml" /> <d:element name="myTag" implements="sq:iInput" /> </d:namespace>
Note
The uses
tag is only for file loading. To ensure that...