xslt.sh 263 B

1234567891011
  1. #!/bin/sh
  2. cd "$(dirname "$0")"
  3. for src in testdata/*/*.html
  4. do
  5. echo "==== $src ==========================="
  6. base="$(dirname "$src")/$(basename "$src" .html)"
  7. xsltproc --html --output "$base.xml" response.xslt "$src"
  8. cat "$base.xml" ; rm "$base.xml"
  9. done