
◦ The Create a text area entry generates a use element that includes a string. The
command asks the user for a label. That label is free and is used for the selection path
displayed in the status bar. The selection must be string and becomes the initial value
of the use element.
◦ The Use a component or an element entry is used to generate a new use.
If the selection is empty, un dialog proposes the list of elements that can be inserted at
that position and asks the user for the label to be associated with the new use element.
A use element is generated with an empty content.
If an element of the target language (div, h1, h2, p, ...) is selected, a use element that
allows one to insert this element type is generated at that position. The selected
element becomes the initial content of the use element. The command only asks the
user for a label.
◦ The Repeat the current use entry is used to generate a repeat of the current selected
use element. The command asks the user for a label. That label is free and is used for
the selection path displayed in the status bar.
◦ The Create a free editing box entry generates a bag element. The command asks the
user for a label. That label is free and is used for the selection path displayed in the
status bar.
• The created template can stored anywhere, in your local file system or remotely.
9.3. Visualizing template elements
When a document instance is displayed, Amaya shows the XTiger elements under the form of colored
frames that enclose XHTML elements.
• A use element is shown as a dashed blue box
• A bag element is shown as a dashed green box
• A repeat element is shown as a box with a on the top left
• The attribute element is not displayed in the main view, as it only impacts the Attributes
tool.
The XTiger elements can also be seen in the structure view. Open this view with the Show structure
entry of the Views menu. In the structure view, XTiger elements are displayed in gold, while the
XHTML elements are in blue. XTiger elements are also shown in the Source view, but with no special
color.
Another way to understand the nesting of XTiger elements with XHTML elements is the selection path
displayed in the status bar of the window (at the bottom of the window). There, you can see the list of all
elements in the structure of the document from the root element to the current selection. It is updated
every time the selection is changed. In this path, XTiger elements are displayed in gold and XHTML
elements in black. For XTiger elements, it is not the name of the element that is displayed there (use,
bag, repeat) but the label of these elements, as declared in the template.
9.4. Selecting templates
You can select your own templates, or use the templates available on the Amaya web site at
http://www.w3.org/Amaya/Templates/
To ease selection among your favorite templates, there is a Templates section in the Preferences
dialogue (Edit/Preferences, or amaya/Preferences under Mac OS X). Use it to register the templates
that Amaya proposes when you create a new document. When registering a local template, you can call a
file browser with the browse button to locate and select the files to be added to the list. You can also
Amaya User Manual
26
Comentários a estes Manuais