www-lcsim/build
diff -u -r1.6 -r1.7
--- detectors-index.sh 10 Apr 2008 21:07:21 -0000 1.6
+++ detectors-index.sh 7 Jun 2010 23:59:45 -0000 1.7
@@ -17,6 +17,8 @@
exit 1
fi
+source setup-libxslt.sh
+
# Make a work dir.
mkdir scratch
@@ -32,14 +34,15 @@
# Make the collection of info elements.
for d in `cat $LCDETECTORS/detectors/taglist.txt`; do
- xml sel -t -c /lccdd/info $LCDETECTORS/detectors/${d}/compact.xml | grep -v DOCTYPE >> ./compact_all
+ #xml sel -t -c /lccdd/info $LCDETECTORS/detectors/${d}/compact.xml | grep -v DOCTYPE >> ./compact_all
+ xsltproc ../xsl/detector_info.xsl $LCDETECTORS/detectors/${d}/compact.xml | grep -v "\?xml" >> ./compact_all
done
# Dummy ending tag.
echo "</lccdd>" >> ./compact_all
# Make the index page using an XSL processor with a stylesheet.
- xml tr --omit-decl ../xsl/detectors.xsl ./compact_all >> ./index.html
+ xsltproc ../xsl/detectors.xsl ./compact_all >> ./index.html
# Tidy up the output.
tidy -raw -m ./index.html &> /dev/null