Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XSLT Error: A semi colon character was expected

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>
like image 224
Hell.Bent Avatar asked Sep 16 '10 22:09

Hell.Bent


2 Answers

Did you remember to encode any & characters as &amp;?

like image 170
Matti Virkkunen Avatar answered Oct 22 '22 07:10

Matti Virkkunen


XML attribute values must be XML-escaped. All instances of & in a URL for example must be written as &amp;.

The same is true for HTML, by the way, only that browsers (i.e. HTML parsers) are more forgiving than XML parsers.

like image 3
Tomalak Avatar answered Oct 22 '22 07:10

Tomalak