balaji
balaji

Reputation: 1125

how to print "&" character in xslt?

I'm working with XSLT 1.0 and I would liked to print "&" (ampersand) character, as it is special character in xslt, it gives error. So please suggest the option. As we use &lt; to print "<" character.

Upvotes: 4

Views: 3508

Answers (2)

ahmet alp balkan
ahmet alp balkan

Reputation: 45214

&amp; or ($amp; if $lt; works) will solve.

Upvotes: 1

Senad Meškin
Senad Meškin

Reputation: 13756

use encoded version of & sign

&amp;

Upvotes: 5

Related Questions