Compartilhar via


ParameterBinding Element (List)

Applies to: SharePoint Foundation 2010

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

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

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 values indicated in the following table.

ContextFormat
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

ParameterBindings

Occurrences

Minimum: 0

Maximum: Unbounded

See Also

Concepts

XSLT Parameter Bindings

XSLT Global Parameters

How to: Implement Resources in Custom List Views

Other Resources

List Views