How to use the XSLT fn:document function in Saxon-HE to read an XML string?
问题 I'm using the .net version of Saxon-HE. I've written some code to set up an XSLT transformation where the source XSLT is passed in from outside (not read from a file at run-time). Here's a snippet of my code: Saxon.Api.Processor processor = new Saxon.Api.Processor(); // Feed the XSLT into Saxon XmlDocument document = new XmlDocument(); document.LoadXml(xslt); Saxon.Api.XdmNode input = processor.NewDocumentBuilder().Build(document); Saxon.Api.XsltCompiler xsltCompiler = processor