Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4625 dpurdie 1
#!/bin/bash
2
 
3
: ${1:?Must specify the xml file to process}
4
 
5
if [ "$2" ] ; then
6
    echo "Merge in files"
7
    XML=xxx.xml
8
    java -jar saxon9he.jar -xsl:merge.xslt "-s:$1" "fileList=$2" "-o:$XML"
9
else
10
    XML="$1"
11
fi
12
 
13
echo "Generate html"
14
java -cp saxon9he.jar net.sf.saxon.Transform -xsl:releaseNote2html.xslt -o:ddp.html "-s:$XML"
15
 
16
#
17
#   Using Xquery to access attributes
18
#
19
# java  -cp saxon9he.jar net.sf.saxon.Query -s:$1  "-qs:data(/package_data/package/@name)"
20
# java  -cp saxon9he.jar net.sf.saxon.Query -s:$1  "-qs:data(/package_data/package/@version)"
21