root/tags/lgt293/xml/html.sh

Revision 58, 0.6 KB (checked in by pmoura, 7 years ago)

Renamed Unix and DOS scripts for converting XML files to HTML.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1#!/bin/sh
2
3XT_PATH="."
4SAX_PATH="."
5XP_PATH="."
6
7XSLT="lgthtml.xsl"
8
9echo
10echo This script converts all .xml files in the current directory to .html
11echo files applying the XSLT transformation defined in the $XSLT file
12echo using the James Clark XT XSLT Java processor
13echo
14
15foreach file (*.xml)
16    echo converting $file
17    name="`expr "$file" : '\(.*\)\.[^./]*$' \| "$file"`"
18    eval java -cp ${XT_PATH}/xt.jar:${SAX_PATH}/sax.jar:${XP_PATH}/xp.jar -Dcom.jclark.xsl.sax.parser=com.jclark.xml.sax.CommentDriver com.jclark.xsl.sax.Driver $file $XSLT $name.html
19end
20
21echo
22echo conversion done
23echo
Note: See TracBrowser for help on using the browser.