William Duffy

Glasgow Based C# ASP.NET Web Developer

Tag archive for ‘XSLT’

Modifing XML values in XSLT documents

Ever wondered how to perform manipulations of XML values in an XSLT document? For example, if you were consuming an RSS feed which had description values greater than 500 characters in length, but you only wanted to display the first 50 characters before leading the user through to the full post. The solution is XPath [...]

Stop XSL from escaping ampersands in html entities

I had a real hard time today trying to work out why my encoded XML document was being re-encoded when rendered using XSLT. My problem was that an apostrophy ( ‘ ) in my XML was properly encoded to ’ If this is presented to the browser “as-is” then the html entity is correctly rendered [...]