Name

<x:param>

Synopsis

The <x:param> action supplies a value to a parameter used in an XSLT stylesheet. It can only be used within the body of an <x:transform> action.

Syntax

<x:param name="parameterName" value="parameterValue" />

Attributes

Attribute name

Java type

Dynamic value accepted

Description

name
String

Yes

The parameter name.

value
Object

Yes

The parameter value.

Example

<x:transform xml="${doc}" xslt="${stylesheet}">
  <x:param name="custId" value="${param.id}" />
</x:transform>

Get JavaServer Pages, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.