Thank you, somehow xml.pl is not in sourceforge.net distribution.
The tool looks nice and small, yet powerful.
Basic functionality looks ok, but I got a couple of questions:
I couldn't break on v.* variable. If I break on v.day it prints first
record for the next day first and only then handles <breakfooter>
section. Is it how it suppose to run? I've had to break on expression to
make it work properly
...
2004-09-10 23h 4708 887
2004-09-11 00h 3544 230
2004-09-11 38170 6494
2004-09-11 01h 6312 812
...
Example is attached.
Also, I couldn't declare a var that refers to other DATE v.* vars.
Reference to STR v.* vars seems working.
<Variables>
<Variable name="tm" value="stodtsql(time)" type="expression"/>
<Variable name="week" value="format(v.tm, '!@%V')" type="expression"/>
<Variable name="day" value="format(v.tm, '!@%Y-%m-%d')" type="expression"/>
Each line it was complaining:
Format type does not match variable type in 'format' functionFormat type
does not match variable type in 'format' functionrlib_process_variables
EXPECTED TYPE NUMBER OR STRING FOR RLIB_REPORT_VARIABLE_EXPRESSION
I've had to do
<Variables>
<Variable name="week" value="format(stodtsql(time), '!@%V')"
type="expression"/>
<Variable name="day" value="format(stodtsql(time), '!@%Y-%m-%d')"
type="expression"/>
No big deal, but unpleasant
My intentions with RLIB are quite obvious, reports, reports, ... some
other reports.
Bob Doan wrote:
> Hi,
>
> On Fri, 2005-09-09 at 19:55 -0400, Denis Kokarev wrote:
>
>>Does RLIB support input data in XML format rather than reading directly
>>from DB?
>
>
> Yes
>
>
>>Do you have a sample how can I do in in Perl or C?
>
>
> rlib/src/examples/perl/xml.pm
>
>
>>This feature
>>would be helpful for us.
>
>
> Out of curiosity what might AT&T be doing with RLIB?
>
> Cheers,
>
> - Bob
>
|