git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@350 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
		
			
				
	
	
		
			24 lines
		
	
	
		
			591 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			591 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
#!/bin/sh
 | 
						|
 | 
						|
XT_PATH="."
 | 
						|
SAX_PATH="."
 | 
						|
XP_PATH="."
 | 
						|
 | 
						|
XSLT="lgthtml.xsl"
 | 
						|
 | 
						|
echo 
 | 
						|
echo This script converts all .xml files in the current directory to .html
 | 
						|
echo files applying the XSLT transformation defined in the $XSLT file
 | 
						|
echo using the James Clark XT XSLT Java processor
 | 
						|
echo
 | 
						|
 | 
						|
foreach file (*.xml)
 | 
						|
	echo converting $file
 | 
						|
	name="`expr "$file" : '\(.*\)\.[^./]*$' \| "$file"`"
 | 
						|
	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
 | 
						|
end
 | 
						|
 | 
						|
echo
 | 
						|
echo conversion done
 | 
						|
echo
 |