+# Filter to show lines of genertated XSLT when they are mentioned.
+showxslt() {
+ awk '{
+ print;
+ if (sub(/.*generated XSLT line */, "") && sub(/[^0-9].*/, ""))
+ {
+ system("sed -ne "$0"p '$XSLT'");
+ }
+ }'
+}
+
+# Test it works as old version of awk don't have sub or system functions.
+if showxslt </dev/null 2>/dev/null; then
+ SHOWXSLT=showxslt
+else
+ SHOWXSLT=cat
+fi
+