Tuesday, January 31, 2006

xsl templates

Had trouble with character encoding from xsl templates which I couldn't get to the bottom of. The thing was that it worked fine with later versions of Tomcat (5+) but not with the 4.1.x series. Finally figured out that all I needed was an at the top of the stylesheet just below the xsl:stylesheet declaration. Worked it out because some stylesheets were rendering ok and some weren't. The ones that were must have been from examples I nicked that already had that line...

No comments: