summarylogtreecommitdiffstats
path: root/csscheck.sh
blob: e3ac8c45f9f9ce8ea55114a46acb4bf02a9bd6ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

dist=/usr/share/java/xxe/bin
config_dir="/usr/share/java/xxe/addon/config"

jars="$dist/xerces.jar:$dist/resolver.jar"
cp="$dist/xxe.jar:$jars"

c1="$config_dir/catalog.xml"
c2="$config_dir/dita/catalog.xml"
c3="$config_dir/docbook/catalog.xml"
c4="$config_dir/xhtml/catalog.xml"
c5="$config_dir/docbook5/catalog.xml"
c6="$config_dir/docbook51/catalog.xml"
if [ -f "$c1" ]; then
    XML_CATALOG_FILES="$c1;$c2;$c3;$c4;$c5;$c6;$XML_CATALOG_FILES"
    export XML_CATALOG_FILES
fi

exec java -Dxml.catalog.files="$XML_CATALOG_FILES" \
          -classpath "$cp" \
          com.xmlmind.xmledit.stylesheet.StyleSheetLoader "$@"