Hi, I have those social media buttons put up on my blog and they work fine on an html file. However, when I use the same code in XSLT, I get ONE error only on the LinkedIn link because of some characters which are also present in other links (which of course work fine).
In XML (and thus, XSLT - heck, even in HTML) the ampersand sign (&) must be escaped because it's used for something called entities. So you need to do this:
Issue with the social media links
Hi, I have those social media buttons put up on my blog and they work fine on an html file. However, when I use the same code in XSLT, I get ONE error only on the LinkedIn link because of some characters which are also present in other links (which of course work fine).
This is the code:
The problem lies on this bit from the LinkedIn part:
more specifically on the equeals sign. And I get this error:
As I remove the signs that give error it keeps complaining about the next signs.... the " ' " and " + " signs etc...
Any ideas what could cause this?
you need to write your
"&"
like"&"
Hi Alexandru,
In XML (and thus, XSLT - heck, even in HTML) the ampersand sign (&) must be escaped because it's used for something called entities. So you need to do this:
To get that to work.
/Chriztian
Right. Silly mistake... Thank you guys! :)
is working on a reply...