From: Mikhail G. <mgr...@gm...> - 2005-11-10 23:17:06
|
Directory listing option in really is not main focus of the toolkit. As far as I remember I added it to use it in combination with xml sel to loop through files in XSLT using document() xslt function. I'm not sure why do you need unpacked date to process it in XSLT it will make your date comparison operations, date arithmetics, etc more complicated cause you would need to construct actual date out of pieces. I think it's better to use XSLT/EXSLT date/string functions to do same. Example: xml ls | xml sel -t -m "/dir/f[substring(@m,1,4) =3D '2005']" -v "@n" -o " = " -v "@s" -n I wasn't sure someone was interested in directory listing as XML so this option is not implemented in great details. Patches are always welcome (ex: recursive listing). Thank you, --Mikhail On 11/10/05, Alexandre Rafalovitch <ara...@gm...> wrote: > > > I'm pretty sure that many people would disagree with the value of such > > approach. > > Sorry, I didn't find any interesting points in the article. > > Actually, I never quite understood what the directory format was > supposed to be useful for. The times I tried to use it, I wished I did > have unpacked date for direct XSLT post-processing and also some sort > of recursive descent into the directories. > > The kinds of things I wanted to do - I think - was to list all jar > files at any level in a structure with their size and change date. > > Does anybody use that particular functionality enough to talk about it? > > Regards, > Alex. > > > ------------------------------------------------------- > SF.Net email is sponsored by: > Tame your development challenges with Apache's Geronimo App Server. > Download > it for free - -and be entered to win a 42" plasma tv or your very own > Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php > _______________________________________________ > xmlstar-devel mailing list > xml...@li... > https://lists.sourceforge.net/lists/listinfo/xmlstar-devel > |