|
xsl:apply-templates
|
Applies a template to data that matches
a pattern (example seen previously).
The example
lists last name, a comma, first name, and a period,
as an HTML bullet list.
|
| xsl:text |
Outputs the raw text within the element,
including white space. (This was discussed in
an earlier lab.)
|
| @ |
Attributes are specified with @.
For example:
matches the attribute named optional belonging to
an element named chapter.
|
| xsl:value-of |
Matches a pattern in the select attribute
and generates an element in the result tree containing
the matched text.
(If you need to generate an attribute instead of an
element, use {}, discussed below.)
Example:
|
| |
| xsl:choose |
XSL's "switch" statement.
It works together with the xsl:when and
xsl:otherwise instructions.
Example:
|
(Optional)
(Required)
(Unknown)
|
|
| xsl:if |
Branching logic (if-then).
For example:
outputs "(Optional)" if the
required attribute
is "NO".
|
| |