开发者

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&amp;y=2">whatever</a>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜