rfreedman;380765 Wrote: > I reworked the xsl stylesheet. > It produces the same output as before, but is much more efficient. > Note that the forEach construct is very expensive, and generally > frowned upon. > > I attached the new stylesheet, as well as some python code to do the > transform. > I think that you should consider doing the transform server-side, > instead of sending the xml to the browser with a stylesheet reference - > not all browsers handle that well. The only issue here is that you have > to install libxml2, and I'm not sure if that's available on Windows or > not... > > As far as the actual output, I think it might be a good idea to put out > divs instead of tables, and put css classes on the divs. That way, you > could skin it using css, and provide different css according to the > user's choice. > I'll work on that as I can over the next couple of days. > > -Rich
Great! I definitely vote for the approach with divs instead of tables, should make it much easier to create customized style versions! >From your initial work and your mention of big experience with XSLT & Co. I'll try a bit around with that but won't interfer much on that field ;-) *Andy*: Regarding the retrieval script itself I personally would prefer the option to sort the albums in the well-known "Artist -> Year -> Album" way as possible in the SC album view. Of course, it might be best to make this an additional option... In general this is fairly easy by modifying the album request over the CLI (add "sort:artwork" to the request). Initial trial doesn't work, though. I will check why this doesn't fit to the parsing. Cheers, Seb -- srasher http://www.zeroed.net - Ruhrpott Thrash/Death http://www.last.fm/user/srasher ------------------------------------------------------------------------ srasher's Profile: http://forums.slimdevices.com/member.php?userid=6209 View this thread: http://forums.slimdevices.com/showthread.php?t=42826 _______________________________________________ discuss mailing list discuss@lists.slimdevices.com http://lists.slimdevices.com/lists/listinfo/discuss