ASCII output from XML

Joost van Baal joostvb at logreport.org
Mon Mar 12 01:25:33 CET 2001


On Sun, Mar 11, 2001 at 06:50:52PM +0100, Egon Willighagen wrote:
> Ok, it may sound stupid since the original output format was ASCII, 

A scalable framework is a nice thing... :)

> but 
> here it is...
> 
> I uploaded to CVS a XSLT stylesheet that converts the XML to ASCII. The
> result looks like this:
> 
> =======================================
> www Sun Mar 11 17:30:00 CET 2001
> 
> requests per clienthost, top 10
> 
>   some.machine.net.au 121
>   a.second.machine.nl 82
>   matamata.excite.com 77
>   ...
> 
> requested pages per clienthost, top 30, top 5 pages
> 
>   proxy01.ade.iprimus.net.au
>     /woc/gui/styles/woc.css 3
>     /woc/gui/pictures/static_azijnzuur.gif 3
>     ....
>   proxy04.wxs.nl
>     /woc/gui/items/aminozuren.shtml 2
>     ....
> =======================================

Nice!

<snip>
> 
> Ideally, there will be some script to do this with:
> lr_run lr_log2report -x www apache common < apache.log | lr_generate_ascii
> 
> But this script would have to figure out where the Xalan/Xerces jar files 
> are... or other programs in case of other XSLT processors... Thus: a TODO 
> item.

I guess we should do this during configure.  We've got to tweak
configure.in to handle something like

 configure --with-xercesjar=$HOME/lib/java/xerces-1.3.0.jar 
   --with-xalanjar=$HOME/lib/java/xalan-1.2.2.jar

lr_generate_ascii could be generated from a lr_generate_ascii.in, 
expanding macro's like @PATHTOXERCESJAR@ and @PATHTOXALANJAR at .

Bye,

-- 
Joost


-- 
To UNSUBSCRIBE, email to development-request at logreport.org with a subject of 
"unsubscribe". Trouble? Send an email with subject "help" to 
development-request at logreport.org



More information about the Development mailing list