How to fetch Query String in XSLT file

I have used XmlSource file for fetching dynamic menu items i also want to fetch the query string with two values in it. I am getting error while defining &Name Can somebody help me with this ?

<xsl:attribute name="NavigateUrl">
    <xsl:text>?Path=</xsl:text>    
    <xsl:value-of select="REPORT_PTH"/>

    <xsl:text>&Name=</xsl:text>
    <xsl:value-of select="REPORT_NM"/>
  </xsl:attribute>

Answers


Replace & with &amp; in the 5th line of the above code snippet.

In Xml, an ampersand (&) sign introduces an entity, a textual representation of an arbitrary character. This is usually used for special characters and for characters that would otherwise have a special meaning in Xml. As & has a special meaning (introducing entities), it always needs to be replaced with its entity form, namely &amp;.


Need Your Help

Can't remove line breaks in php shell_exec() returnvalue

php linux shell exec line-breaks

I am trying to grab some data from ifconfig but I only get the frist line stored in my variable.

Display login page and return back to previous route/page with Flowrouter

meteor iron-router meteor-blaze flow-router atmosphere.js

I want to build a scenario where if a user wants to access a secure page and they are not logged in they get redirected to a login page like so.