How to catch parameters by XSL?

1

I'm modifying a form in Sharepoint and I want to get the parms that are being passed in the url, does anyone have a suggestion?

 <xsl:element name='a'>
 <xsl:attribute name='href'>
 http://smallserver:777/tools/geraDoc2.aspx?
 <xsl:value-of select="parametroComNomeDeIDqueEstáNaURL" />
 </xsl:attribute>
    
asked by anonymous 29.07.2014 / 21:23

1 answer

1

In Sharepoint you can use ParameterBinding to associate a QueryString key with a parameter. So, for a QueryString ?IDSelecionado=10 , the following code:

<ParameterBinding Name="IDSelecionado" Location="QueryString(IDSelecionado)"/>
Código correspondent no XSL: 
<xsl:param name=“IDSelecionado”/>

Will return 10 when parameter IDSelecionado is evaluated.

Source: MSDN, 'XSLT Parameter Bindings'

    
29.07.2014 / 21:48