From: Christof H. <chr...@gm...> - 2005-11-10 09:57:55
|
Hello, You may have read this. Xmlstar only serves as an example but nevertheless the author IMHO has a point, http://www-128.ibm.com/developerworks/xml/library/x-tipflaw.html I really am quite fond of xmlstar, very helpful and nice tool. But the suggested improvements for the directory listing XML format which xmlstar produces would really be quite helpful. Might this be considered in a future version? Thanks Christof |
From: Mikhail S G. <mgr...@co...> - 2005-11-10 14:36:29
|
Hmm, This article is dated Nov 4th, 2005 but it is based on outdated version of xmlstarlet. Better naming of root element and ISO 8601 date format have been in there for over 8 months. It also proposes the following style for bit fields in XML (examples): <bits> <bit1>true</bit1> <bit2>false</bit2> <bit3>true</bit3> <bit4>false</bit4> </bits> for 0101 and timestamps as: <dateTime> <year>2005</year> <month>06</month> <day>10</day> <hour>13</hour> <minute>49</minute> <second>59</second> </dateTime> instead of 2005-06-10T13:49:59 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. --Mikhail PS: Thanks for your feedback on xmlstarlet. ----- Original Message ----- From: "Christof Hoeke" <chr...@gm...> To: <xml...@li...> Sent: Thursday, November 10, 2005 4:57 AM Subject: [Xmlstar-devel] IBM developerworks article Hello, You may have read this. Xmlstar only serves as an example but nevertheless the author IMHO has a point, http://www-128.ibm.com/developerworks/xml/library/x-tipflaw.html I really am quite fond of xmlstar, very helpful and nice tool. But the suggested improvements for the directory listing XML format which xmlstar produces would really be quite helpful. Might this be considered in a future version? Thanks Christof ------------------------------------------------------- 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 -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.12.8/162 - Release Date: 11/5/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.12.8/162 - Release Date: 11/5/2005 |
From: Alexandre R. <ara...@gm...> - 2005-11-10 19:26:20
|
> 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. |
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 > |