Render an url of type ?x=1&y=2 with xslt
Im trying to print, using a xslt sheet a url but im having problems with the chars = and &:
This is the url that i want to render:
<a href="whatever.aspx?x=1&y=2">whatever</a>
Im getting that "=" is an unexpected token.
H开发者_运维问答ow should i have to put the = and the & in a xslt sheet?
Thanks in advance.
Regards.
Jose
You need to escape your ampersand, as that is the symbol used to denote the start of an entity:
<a href="whatever.aspc?x=1&y=2">whatever</a>
精彩评论