XSLT Error: A semi colon character was expected

12,168

Solution 1

Did you remember to encode any & characters as &?

Solution 2

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.

Share:
12,168
Hell.Bent
Author by

Hell.Bent

It's all about the R&D.

Updated on July 29, 2022

Comments

  • Hell.Bent
    Hell.Bent over 1 year

    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>