Project

Profile

Help

Question on apply_templates_returning_file » apply_templates_returning_string_test1.py

Martin Honnen, 2019-10-31 12:23

 
1
import saxonc
2

    
3
with saxonc.PySaxonProcessor() as proc:
4
    print(proc.version)
5

    
6
    xslt30_processor = proc.new_xslt30_processor()
7

    
8
    result = xslt30_processor.apply_templates_returning_string(source_file = "input-sample1.xml", stylesheet_file = "identity.xsl")
9

    
10
    print(result)
(2-2/4)