0

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>
1
  • 2
    What error are you getting? What's the error message? Commented Jun 11, 2012 at 12:47

1 Answer 1

2

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;.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.