ParameterBinding element (List)

Applies to: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online | SharePoint Server 2013

Specifies a stylesheet parameter binding to make a resource available to the XSL that renders the view.

<ParameterBinding  Name = "Text"  Location = "Text" />

Elements and attributes

The following sections describe attributes, child elements, and parent elements.


Attribute Description
Optional Text. Specifies a name for the parameter. The XSL stylesheet defines a parameter of the same name <xsl:param name="ParameterName"/> and the resource becomes available anywhere in the stylesheet through an XPath expression <xsl:value-of select="$ParameterName" />.
Optional Text. Specifies the location of the resource. SharePoint Foundation uses a Resource function to define the value of Location in the format Location = "Resource(ResourceFile, ResourceName)", where ResourceFile specifies the base name of a resource file minus the file extension, and ResourceName specifies the name of the resource string.

In addition to specifying a localized resource in a .resx file, the Location attribute can be used to specify the values indicated in the following table.

Location attribute values

Context Format
Query strings
<ParameterBinding Name="SelectedID" Location="QueryString(SelectedID)"/>Corresponding code in XSL: <xsl:param name="SelectedID"/>
<ParameterBinding Name="dvt_firstrow" Location="Postback;Connection"/>
Server variables
Web Part Properties
Control IDs

Child elements


Parent elements


  • Minimum: 0
  • Maximum: Unbounded

See also