Coming from this question: http://www.experts-exchange.com/Web/Web_Languages/XML/Q_20933294.html
I have trouble writing compact XSL: the code is still too many kB. I suspect however that using some smart coding my XSL can be compacter.
The site: www.tivoli.nl
(look at the "Agenda")
the XML: http://www.terminal.nl/tivoli2004/agenda/xml/nl.xml
the XSL as it was before i started compacting: http://www.terminal.nl/tivoli2004/agenda/xml/agenda.nl.xsl.asp
the XSL as it was after my first effort: http://www.terminal.nl/tivoli2004/agenda/xml/agenda.nl.new.xsl.asp
Some reduction achieved, still not satisfied. So everyone who helps me with further reduction gets points. I am only interested in a smart use of XSL functionality.
- shorter names and removing white space does not count (i can think of that myself)
- i want to reduce bandwidth use, so moving stuff to another file (which requires another HTTP request) is only valid if it reduces the total bandwidth use.
- functionality must be the same (must result in the same HTML in the browser)
- compatible with IE5+ and Mozilla.
As a rule of thumb: 100 points for every kB reduction.