I actually think that might make it harder :s Like this I can go through the xsl and easily see if the classes I am using still match the xsl, whereas if I put them in variables I would have to go see what the variable is equal to each time. If I was making it from scratch myself I would do that but since I am just trying to copy how the xsl does it I thought copying exactly would make it easier to step through. See here: https://qs.renovations.com:444/connections/resources/web/lconn.search/xslt/searchAll.xsl#collapsible196

On each condition it just hard codes the class to use, and each of the classes (lconnSprite-iconForums16 etc I mean) are just used once in the entire document. 

(also that document was tiresome to understand and replicate in javascript using static templates XD)