element <template>
Namespace:
Type:
Content:
empty, 8 attributes
Defined:
globally within component.xsd, see XML source
Used:
XML Representation Summary
<template
   
form
 = 
xsd:string
   
forms
 = 
list of xsd:string
   
id
 = 
xsd:string
   
ifEvents
 = 
list of xsd:string
   
ifExpr
 = 
xsd:string
   
location
 = 
xsd:string
   
mode
 = 
xsd:string
   
phase
 = 
xsd:string
/>
May be included in elements (4):
Known Usage Locations
Annotation
This defines a contribution. The text element is template-expanded
with ${ ... } expression escapes and may contain Javascript in <% ... %> sections.
Embedded Type Detail
Type Derivation Summary
xsd:string
      complexType
XML Source
<xsd:element name="template">
<xsd:annotation>
<xsd:documentation>
This defines a contribution. The text element is template-expanded
with ${ ... } expression escapes and may contain Javascript in <% ... %> sections.
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:complexContent>
<xsd:extension base="ConditionalSourceGenString">
<xsd:attribute name="location" type="xsd:string" use="optional">
<xsd:annotation>
<xsd:documentation>
The location id the contribution goes to. May not be specified when "phase" is set.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="phase" type="xsd:string" use="optional">
<xsd:annotation>
<xsd:documentation>
The phase the contribution goes to. A parent component must realize the
phase into an actual location id.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="mode" type="xsd:string" use="optional">
<xsd:annotation>
<xsd:documentation>Unused currently.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<!-- form and forms are the same, semantically -->
<!-- form is obsolescent, use forms instead -->
<xsd:attribute name="form" type="xsd:string" use="optional">
<xsd:annotation>
<xsd:documentation>
A token used to select a particular kind of source for a parent.
The namespace is determined implicitly by what a parent requests.

For instance, a parent may have special sourcegen, and pass
the form "SpecialCase" to its children. Templates specifying
form="SpecialCase" will be selected. Other parents will not see
such templates if they do not specify that form.

If the form does not match, the template is not instantiated.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="id" type="xsd:string" use="optional">
<xsd:annotation>
<xsd:documentation>
Unique id for the template within a component or
within a templateGroup. Ids may be shared for different
forms. Derived components may redefine ids or inherit
templates by id.
Added post 1.1: if the id is unspecified in a templateGroup,
a default id is assigned. To avoid inheriting, supply an empty id.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
</xsd:element>
Attribute Detail
form
A token used to select a particular kind of source for a parent.
The namespace is determined implicitly by what a parent requests.

For instance, a parent may have special sourcegen, and pass
the form "SpecialCase" to its children. Templates specifying
form="SpecialCase" will be selected. Other parents will not see
such templates if they do not specify that form.

If the form does not match, the template is not instantiated.
Type:
xsd:string
Use:
optional
Defined:
locally, within this element
XML Source
<xsd:attribute name="form" type="xsd:string" use="optional">
<xsd:annotation>
<xsd:documentation>
A token used to select a particular kind of source for a parent.
The namespace is determined implicitly by what a parent requests.

For instance, a parent may have special sourcegen, and pass
the form "SpecialCase" to its children. Templates specifying
form="SpecialCase" will be selected. Other parents will not see
such templates if they do not specify that form.

If the form does not match, the template is not instantiated.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>

forms
Added post 1.1 to inline.

A list of tokens used to select a particular kind of source for a parent.
The namespace is determined implicitly by what a parent requests.

For instance, a parent may have special sourcegen, and pass
the form "SpecialCase" to its children. Elements specifying
form="SpecialCase" will be selected. Other parents will not see
such elements if they do not specify that form.

If the form does not match, the element is not invoked.
Type:
Use:
optional
Defined:

id
Unique id for the template within a component or
within a templateGroup. Ids may be shared for different
forms. Derived components may redefine ids or inherit
templates by id.
Added post 1.1: if the id is unspecified in a templateGroup,
a default id is assigned. To avoid inheriting, supply an empty id.
Type:
xsd:string
Use:
optional
Defined:
locally, within this element
XML Source
<xsd:attribute name="id" type="xsd:string" use="optional">
<xsd:annotation>
<xsd:documentation>
Unique id for the template within a component or
within a templateGroup. Ids may be shared for different
forms. Derived components may redefine ids or inherit
templates by id.
Added post 1.1: if the id is unspecified in a templateGroup,
a default id is assigned. To avoid inheriting, supply an empty id.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>

ifEvents
Added post 1.1 to inline.
If defined, a list of events, any of which must be bound for the
element to be invoked.
Type:
Use:
optional
Defined:

ifExpr
Added post 1.1.
If defined, a Javascript expression which must evaluate to
true (or non-zero) for the element to be invoked.
Type:
xsd:string
Use:
optional
Defined:

location
The location id the contribution goes to. May not be specified when "phase" is set.
Type:
xsd:string
Use:
optional
Defined:
locally, within this element
XML Source
<xsd:attribute name="location" type="xsd:string" use="optional">
<xsd:annotation>
<xsd:documentation>
The location id the contribution goes to. May not be specified when "phase" is set.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>

mode
Unused currently.
Type:
xsd:string
Use:
optional
Defined:
locally, within this element
XML Source
<xsd:attribute name="mode" type="xsd:string" use="optional">
<xsd:annotation>
<xsd:documentation>Unused currently.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>

phase
The phase the contribution goes to. A parent component must realize the
phase into an actual location id.
Type:
xsd:string
Use:
optional
Defined:
locally, within this element
XML Source
<xsd:attribute name="phase" type="xsd:string" use="optional">
<xsd:annotation>
<xsd:documentation>
The phase the contribution goes to. A parent component must realize the
phase into an actual location id.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>