Reputation: 1677
I've got this url that I need to place in a link in some XSL. Not sure where the problem is. If I pull the link out of the XSL it works fine.
<a href="https://xxxxx.com/sites/mcpharm/ApplicantDocuments/Forms/ApplicantUpload.aspx?List=%7B3D4B5CEF%AF61%2DBFA1945747EA%7D&RootFolder=%2Fsites%2Fmcpharm%2FApplicantDocuments%2F{$QSApplicantID}&Source=https://xxxxx.com/sites/mcpharm/Lists/Applicant/Detail.aspx?ID={$QSApplicantID}">Upload New Document</a>
Upvotes: 9
Views: 14917
Reputation: 338128
XML attribute values must be XML-escaped. All instances of &
in a URL for example must be written as &
.
The same is true for HTML, by the way, only that browsers (i.e. HTML parsers) are more forgiving than XML parsers.
Upvotes: 4