I am attempting to build a quick JNI bridge between Xalan-J and Xalan-C++ such that a single-threaded windows application won't take so long to transform large mime messages with embedded base-64 encoded content (even with XSLTC a 12MB file takes 3 minutes and 85MB RAM to transform in Xalan-J, Xalan-C++ knocks it out in less than a second). I am looking to pass the xml source, xslt, and result across the JNI interface as strings. However, I can't understand how to get the org.apache.xalan.templates.Stylesheet class used by the TransformerFactoryImpl to build an XML string from its contents. I built my own ContentHandler instead of using the org.apache.xalan.processor.StylesheetHandler, and I can simply build the XML String from the SAX events (which then works with my JNI interface), however I have difficulty supporting namespaces and am fairly certain I will never implement the w3c requirements in full, so it is not very good for general-use. Hence I am wanting to override the existing xalan classes. The only problem I seem to have is getting the Stylesheet out of the class as a string. I tried treating the stylesheet as a node tree and walking it, but can't seem to find the root node (getParent() is always null). Any ideas? Thanks.
This email message and any attachments are confidential to Endeca. If you are not the intended recipient, please notify Endeca immediately -- by replying to this message or by sending an email to: [EMAIL PROTECTED] -- and destroy all copies of this message and any attachments. Thank you.
