Result Pagination with XSL- (Found July 8, 2008 ) My technique for separating Xml results into pages. The great thing is that it is fully implemented in XSL, the bad thing is that you still have to deal with the entire result, even though you are only showing a portion of it.http://aspn.activestate.com/ASPN/Cookbook/XSLT/Recipe/117251 Fast method to repeat a string- (Found July 8, 2008 ) A recursive template to repeat a string a number of times in a manner similar to the Perl 'x' operator.http://aspn.activestate.com/ASPN/Cookbook/XSLT/Recipe/148987 Tokenize a string- (Found July 8, 2008 ) How to tokenize a string by separating it at a any of several characters and process each token individually.http://aspn.activestate.com/ASPN/Cookbook/XSLT/Recipe/149199 Convert a flat xml file into a structured- (Found July 8, 2008 ) Most csv to xml converters produce some kind of flat xml code which often needs to be transformed in a more usable (i.e. structured) representation or to match your existing stylesheets. Tags have to be renamed, others have to be inserted or dropped. This styleheet does it all. You even have not to be an XML programmer to customize it's behavior.http://aspn.activestate.com/ASPN/Cookbook/XSLT/Recipe/151984 Tokenize strings and tabulate- (Found July 8, 2008 ) Tokenizes strings into result tree fragments then processes those fragments to produce a table. Works with mozilla 1+ (which allows direct processing of result tree fragments) and with IE6 (with which it uses msxsl:node-set() to enable the fragment processing).http://aspn.activestate.com/ASPN/Cookbook/XSLT/Recipe/189861 Verbatim Copying of Embedded HTML (HTMLViewer)- (Found July 8, 2008 ) Some XML sources contain HTML fragments which simply need copying from the source into the output. Here is the essential idea.http://aspn.activestate.com/ASPN/Cookbook/XSLT/Recipe/275367 Numbering Figures in a Document- (Found July 8, 2008 ) Sometimes, in a formal document, you want the figures numbered like "2-3", "5-4", etc., where the first number is the section number, and the second number is the figure number within the section.http://aspn.activestate.com/ASPN/Cookbook/XSLT/Recipe/415002 Menu and submenu dependent on current page- (Found July 8, 2008 ) Sometimes you have tree-like menu and you want to present it as Main menu and show custom sub menu on page that is dependent on current page. Here it is.http://aspn.activestate.com/ASPN/Cookbook/XSLT/Recipe/498218 Determining the MSXML version- (Found July 8, 2008 ) This is not so much an XSLT recipe but it is covered here because other recipes only work with particular versions of MSXML. Most recipes depend on MSXML3.http://aspn.activestate.com/ASPN/Cookbook/XSLT/Recipe/65422 |