Using Parameters to Store Values that Change

MSXML 5.0 SDK

Microsoft XML Core Services (MSXML) 5.0 for Microsoft Office - XSLT Developer's Guide

Using Parameters to Store Values that Change

The use of XSLT parameters is similar to that of XSLT variables. The main difference is that the value of a parameter can change during the run of the style sheet, or be passed in from an outside environment. The value of a variable, once set, cannot be changed. The following table describes two kinds of parameters you can use in style sheets.

Parameter type Description
Local parameters Used for passing data from one template rule to another. For example, you can pass a parameter to a named template, based on some condition in a given template rule. This enables you to control the way the named template behaves.
Global parameters Used for passing values into a style sheet. This enables the style sheet to perform particular steps, depending on a value supplied by the user. In Internet Explorer, parameters are passed to a style sheet using script.

This section contains the following topics.

See Also

Initial XSLT Example Using Variables | Finished XSLT Example Using Variables