|
Revision 30, 0.6 KB
(checked in by pmoura, 7 years ago)
|
|
This commit was manufactured by cvs2svn to create tag 'lgt291'.
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 | #!/bin/sh |
|---|
| 2 | |
|---|
| 3 | XT_PATH="." |
|---|
| 4 | SAX_PATH="." |
|---|
| 5 | XP_PATH="." |
|---|
| 6 | |
|---|
| 7 | XSLT="lgthtml.xsl" |
|---|
| 8 | |
|---|
| 9 | echo |
|---|
| 10 | echo This script converts all .xml files in the current directory to .html |
|---|
| 11 | echo files applying the XSLT transformation defined in the $XSLT file |
|---|
| 12 | echo using the James Clark XT XSLT Java processor |
|---|
| 13 | echo |
|---|
| 14 | |
|---|
| 15 | foreach 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 |
|---|
| 19 | end |
|---|
| 20 | |
|---|
| 21 | echo |
|---|
| 22 | echo conversion done |
|---|
| 23 | echo |
|---|