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.
Attributes
Attribute | Description |
---|---|
Name |
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" /> . |
Location |
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"/> |
Connection/Postback |
<ParameterBinding Name="dvt_firstrow" Location="Postback;Connection"/> |
Server variables |
(Location="Form(variableName)") |
Web Part Properties |
(Location="WPProperty(PropertyValue") |
Control IDs |
(Location="Control(ControlID)") |
Child elements
None
Parent elements
Occurrences
- Minimum: 0
- Maximum: Unbounded