summaryrefslogtreecommitdiffstats
path: root/test/w3c/update-txml.sh
blob: 9fa2c99706b303a30c502990096cec0797067797 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
wget -rl1 -Atxml,txt,xsl http://www.w3.org/Voice/2013/scxml-irp/

# wget http://www.w3.org/Voice/2013/scxml-irp/545/test545.txml
# wget http://www.w3.org/Voice/2013/scxml-irp/577/test577.txml
# mv test545.txml ./txml
# mv test577.txml ./txml

find ./www.w3.org -name "*.txml" -exec cp {} ./txml \;
find ./www.w3.org -name "*.txt" -exec cp {} ./txml \;
find ./www.w3.org -name "*.xsl" -exec cp {} . \;
rm -rf www.w3.org

sed -ie "s/<xsl:attribute name=\"delayexpr\">Var<xsl:value-of select=\".\" \/><\/xsl:attribute>/<xsl:attribute name=\"delayexpr\">(Var<xsl:value-of select=\".\" \/>.slice(0, - 1)) * 50 + 'ms'<\/xsl:attribute>/" confEcma.xsl
sed -ie "s/<xsl:attribute name=\"delayexpr\">'<xsl:value-of select=\".\"\/>s'<\/xsl:attribute>/<xsl:attribute name=\"delayexpr\">'<xsl:value-of select=\". * 50\"\/>ms'<\/xsl:attribute>/" confEcma.xsl

rm confEcma.xsle