18 lines
		
	
	
		
			279 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			279 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| import Parser
 | |
| 
 | |
| 
 | |
| if __name__ == '__main__':
 | |
|     SOURCE = "sample/xslt.xml"
 | |
|     XSLT = "sample/sample.xslt"
 | |
| 
 | |
|     file = open(SOURCE, "r")
 | |
|     xml = file.read()
 | |
|     file.close()
 | |
| 
 | |
|     file = open(XSLT, "r")
 | |
|     xslt = file.read()
 | |
|     print(Parser.xslt(xml, xslt))
 | |
| 
 | |
|     file.close()
 | |
| 
 |