How to Create a Named Template

To create a new named template:

  1. Right-click a blank area in the XSLT pane, and select New Named Template from the context menu. Alternatively:
    • Right-click a blank area in the canvas (center) pane, and select Create >New Named Template from the context menu.

    • Right-click any source node in the source pane, and select New Named Template from the context menu.

    • Select the Add button, identified by the green plus (+) icon, in the XSLT toolbar, and select New Named Template.

    The Add Named Template dialog appears.

  2. Enter a name for the template. Optionally, set a namespace.

    You can click Help to display help on the available options in the dialog.

  3. Optionally click the Add button, identified by the green plus (+) icon, to add a parameter. The Add Parameter dialog appears.
  4. Enter a name for the parameter. Optionally, set a namespace.

    If the parameter is a complex parameter, you can specify a schema and an element definition for the parameter. Click the Help button in the dialog to get more information on the individual fields.

  5. Click OK in the Add Parameter dialog to add the parameter.
  6. Add any more parameters required for the named template.
  7. Click OK in the Add Named Template dialog to create the named template.