Commit in www-lcsim/build on MAIN
detectors-index.sh+5-21.6 -> 1.7
fix detector index build; use new version of libxslt

www-lcsim/build
detectors-index.sh 1.6 -> 1.7
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
CVSspam 0.2.8