Re: Transform object and pass in an InputStream of the
2) The example is a success but I'm trying to change it such that I do not need to read from a local file and can instead read all imported style sheets and input files from an InputStream or an in-memory string object.
4) Where an XSLT file has a statement like <xsl:import href="FixedLengthRoutines.xsl" />, am I able to programmatically instantiate a Transform object and pass in an InputStream of the said imported XSLT file as a parameter? If I can, I would be able to avoid writing the entire imported XSLT objects to the file system prior to invoking the Transform method as I want to call my fixed width to XML class remotely.
Searching for "CustomURIResolver" should plenty of examples. The only catch is (if I remember correctly) to intercept imports/includes you need set the resolver on the TransformerFactory, the resolver set on the Transformer only is only used for document() calls.
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format