diff -r e6bac9ff0d87 -r a19312ab9db7 relpipe-data/examples-in-xmltable-ssm-gui.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/relpipe-data/examples-in-xmltable-ssm-gui.xml Sun Oct 06 11:24:40 2019 +0200 @@ -0,0 +1,56 @@ + + + Generating statistics and charts using XMLTable + read a XML file and get a visual overview + 03100 + + + +

+ We are currently finalizing guidelines called Sane software manifesto + (sources). + This document consists of chapters and items. An item might be a requirement, a recommendation or an information. + In order to get a high-level overview, we generate statistics showing the counts of items of forementioned types in particular chapters. + Whole document is built using GNU Make, so we call also commands from the Makefile: +

+ + + +

+ The first Makefile target stores relational data in the file statistics.rp (which is re/generated only if ssm.en.xml has been changed). + And then this file is used twice: for terminal output using relpipe-out-tabular and for visual output with a chart using relpipe-out-gui. +

+ +

+ The relpipe-in-xmltable simply counts items (requirements, recommendations, informations, totals) in each chapter using XPath expressions. + So we can see how heavy and strict particular chapters are: +

+ + + + +

+ However – for such data – much better than a table is a chart. + So we pipe the raw relational data prepared in the build/statistics.rp to the relpipe-out-gui command. + But because this tool counts totals itself and stacks the values in the bar chart, + we remove the items_total attribute from the relation using relpipe-tr-cut transformation. + Thanks to regular expressions, it is very concise. But of course, we can make it more explicit: +

+ + + +

We also set the window title (using the -title Qt option) and get the chart:

+ + + +

+ +

+ + +
+ +
\ No newline at end of file