from saxonche import *


def run():
    with PySaxonProcessor(license=False) as proc:
        print(f"Processor version: {proc.version}")
        xsltproc = proc.new_xslt30_processor()
        xsltproc.transform_to_file(source_file=r"try_saxon_input.xml",
                                   stylesheet_file=r"simple.xsl",
                                   output_file=r"simple_output.xml")


for x in range(0, 3):
    run()
