File: xml_2_depends.sh

package info (click to toggle)
arb 6.0.2-1%2Bdeb8u1
  • links: PTS, VCS
  • area: non-free
  • in suites: jessie
  • size: 65,916 kB
  • ctags: 53,258
  • sloc: ansic: 394,903; cpp: 250,252; makefile: 19,620; sh: 15,878; perl: 10,461; fortran: 6,019; ruby: 683; xml: 503; python: 53; awk: 32
file content (11 lines) | stat: -rwxr-xr-x 208 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash -u

XSLTPROC=$1 ; shift
STYLESHEET=$1 ; shift
XSLTPROCARGS="$@"

while read LINE; do
    for XML in $LINE; do
        $XSLTPROC --stringparam xml $XML $XSLTPROCARGS $STYLESHEET $XML
    done
done