Greetings.

I am working on a document uniformication framework, and it seems that
the XSLT processor of lxml works differently than command xsltproc of
libxslt.

def process(data: ET._Element, stylesheet: ET._Element) -> ET._XSLTResultTree:
    """Process an XML document by a specified XSLT stylesheet filename."""
    transform = ET.XSLT(stylesheet)
    newdom = transform(data)
    return newdom

I am not sure whether my statement could be reasonable or not.

Please advise.

Kind regards,
Schimon
_______________________________________________
lxml - The Python XML Toolkit mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/lxml.python.org
Member address: [email protected]

Reply via email to