relpipe-data/examples/ssm-xmltable-1.makefile
branchv_0
changeset 272 a756214f1ee8
parent 271 a19312ab9db7
child 326 ab7f333f1225
equal deleted inserted replaced
271:a19312ab9db7 272:a756214f1ee8
     3 	cat text/ssm.en.xml \
     3 	cat text/ssm.en.xml \
     4 		| relpipe-in-xmltable \
     4 		| relpipe-in-xmltable \
     5 			--namespace "m" "tag:globalcode.info,2019:sane-software/manifesto" \
     5 			--namespace "m" "tag:globalcode.info,2019:sane-software/manifesto" \
     6 			--relation "chapter" \
     6 			--relation "chapter" \
     7 				--records "//m:chapter" \
     7 				--records "//m:chapter" \
     8 				--attribute "name" string "m:name" \
     8 				--attribute "name"            string  "m:name" \
     9 				--attribute "requirements" integer "count(descendant::m:item[m:type='requirement'])" \
     9 				--attribute "requirements"    integer "count(descendant::m:item[m:type='requirement'])" \
    10 				--attribute "recommendations" integer "count(descendant::m:item[m:type='recommendation'])" \
    10 				--attribute "recommendations" integer "count(descendant::m:item[m:type='recommendation'])" \
    11 				--attribute "informations" integer "count(descendant::m:item[m:type='information'])" \
    11 				--attribute "informations"    integer "count(descendant::m:item[m:type='information'])" \
    12 				--attribute "items_total" integer "count(descendant::m:item)" \
    12 				--attribute "items_total"     integer "count(descendant::m:item)" \
    13 		> build/statistics.rp
    13 		> build/statistics.rp
    14 
    14 
    15 # Prints a table with number of items in particular chapters:
    15 # Prints a table with number of items in particular chapters:
    16 statistics: build/statistics.rp
    16 statistics: build/statistics.rp
    17 	cat build/statistics.rp | relpipe-out-tabular
    17 	cat build/statistics.rp | relpipe-out-tabular