Jan
31
2009
XML Directory Listing 0.2
I had a couple of tickets needing doing for the XML Directory Listing project I have on Googlecode. Thanks again to all those that submitted the tickets, the new 0.2 release resolves these I hope:
- Change to in / out file handlers on Ant task, should work more like the native tasks
- Removed DTD from XML output
- Added ability to configure character set on XML declaration, defaulting to UTF-8
- Possible fix to bug in XML output on Ubuntu Hardy
I was wondering recently whether this solution is a little over engineered and how if I had to do it again I’d go for something like a simple ruby script - after all it’s not that common a task. However I’ve used this software again at work recently to generate some documentation from inline comments in XSLT and the Ant integration is really quite useful. Hope others find a use for it too.
Visit the XML Directory Listing application page on Googlecode
,jon
on 1 Oct 2010 at 7:00 amThis is a very useful task! I am using an Ant build to create EPUB ebooks from source files. One of the task requires me to parse in directory contents into an XML structure. I am not done, yet, I just discovered xml-dir-listing and did a first test run. The end result will be some xml-fragment like this (I hope the formatting does not get hosed):
So, as you can see, I will create XML files, each per directory, parse the file elements via XSLT or the XMLTask and inject it into the dynamically created output file. Ideally, as an option, xml-directory-listing would write to the same buffer as XMLTask can read, but I think I am dreaming here ;-) This would make any intermediate files obsolete. But that’s just for elegance in a case like this.
Still not sure how to deal with the media-type, though.
,jon
on 1 Oct 2010 at 7:01 amAh, the backend too out the XML source completly. Too bad. Basically it is the ‘manifest’ part in the ‘content.opf’ file in an EPUB.