blob: 1a704de022b11474f7c1acfe652a5bb2b8b859ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/sh
echo "<_report>"
for element in `cat elements`; do
echo "<_element name='"$element"'/>"
done;
for file in db2html*.xsl; do
echo "<_file href='"$file"'>";
xml sel -t \
-m "//xsl:template[@match and not(@mode)]" \
-e _template -a match -v "@match" \
$file;
xml sel -t \
-m "//xsl:template[@match and @mode]" \
-e _template -a match -v "@match" --break -a mode -v "@mode" \
$file;
echo "</_file>";
done;
echo "</_report>"
|