Template node


When you are working in the

WarningSome content is unavailable due to permissions.

Development Studio XSLT transform editor, a template is used to contain rules to apply when a specified node is matched. At least one Template must be defined for a style sheet.

The match criteria used against the source document determines the transforms (rules) that are executed. The value of the Match field is an XPath expression. A Match of '/' defines the entire XML document. By default, this is the third node on the Stylesheet Canvas.

Field

Description

Required

Name

Unique reference for this template.

This value must be a qualified name (Qname), beginning with a letter, colon or underscore and consisting of alphanumeric characters, underscores or dashes.

Conditional

A Template must contain a value for either the Name or Match field. A value can be defined for both.

Match

XPath expression that defines a portion of the XML document on which the transforms in the Template's child nodes will be executed.

Conditional

A Template must contain a value for either the Name or Match field. A value can be defined for both.

Mode

An alphanumeric value, token or XPath expression that will be used in the Apply Templates node to indicate that this template will be applied.

No

Priority

Numeric value, either positive or negative, that indicates the order in which the template is called in the event there are multiple templates with the same Mode value.

No

When adding a Template node to the Stylesheet Canvas, the Add Nodes to Selection window appears.

This feature allows you to mark any available nodes to be added as child nodes and placed on the canvas. For the Template node, the Parameter and Element nodes will be available. Check the child nodes and click OK. The selected nodes will be placed as children.

The Property Panel configuration for each of the child nodes added with the Add Nodes to Selection window will need to be completed individually.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

TrueSight Orchestration Platform 8.2