[Home] [By Thread] [By Date] [Recent Entries]
At 2011-09-25 14:28 -0700, Hank Ratzesberger wrote:
I'm having some problems with constructs like hash tables or indexes, which are quick in other languages but presently I am using some brute force with. E.G. XSLT 1 (though not accommodating case): format-number( (string-length(substring-before('janfebmaraprmayjunjulaugsepoctnovdec',$mon) ) div 3) + 1,'00') XSLT 2: format-number( index-of( ('jan','feb',...,'dec'), lower-case($mon) ),'00' ) I hope this helps. . . . . . . . . . Ken -- Contact us for world-wide XML consulting and instructor-led training Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Google+ profile: https://plus.google.com/116832879756988317389/about Legal business disclaimers: http://www.CraneSoftwrights.com/legal
|

Cart



