How to Create a Named or Matched Template

To create a named or matched template:
1. Right-click the XSLT mapper canvas.
2. Select Create Template > Named Template or > Matched Template from the shortcut menu.

Stylus Studio displays the Named Template (or Matched Template) dialog box. (The Named Template dialog box is shown in Figure 254.)

Figure 254. Named Template Dialog Box

3. Enter a name and, optionally, a mode.
Tip

 

You can use a mode to define the conditions under which a template will be applied by a stylesheet.

4. Optionally, create one or more parameters:
a. Click the Add button.

The Name column becomes editable.

b. Type a parameter name and press Enter.

The Default Value field becomes editable.

c. Type a default value.
d. If you want to define another parameter, click ADD; otherwise, go to step 5.
5. Click OK to finish creating the template.

Supported XML Technologies

Learning XML is easy with Stylus Studio, the only XML IDE to support all official W3C XML technologies! Learn more about Stylus Studio's tools and support for XML and related W3C technologies.

XML Operations

Using XML Pipeline it's easy to visually specify a series of XML operations to apply on your XML data, including parsing, validating, converting and transforming, according to the needs of your business application.

EAI - Enterprise Application Integration

Using EAI tools included with Stylus Studio it's easy to unlock silos of enterprise data and seamlessly integrate it into your IT applications.

XQuery Editor

Stylus Studio's XQuery development tools are a tremendous help in building and testing XML applications requiring a standards-based approach to querying, integrating and transforming data from various distributed data sources.

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member