DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12270>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12270 Not able to transform in-memory documents ------- Additional Comments From [EMAIL PROTECTED] 2002-09-05 23:53 ------- For DOM assistance, I would suggest you take the discussion back to the mailing lists -- you'll get more and faster responses to "how do I" questions there than you will here. And DOM usage is pretty far outside Xalan's scope -- it certainly isn't a Xalan bug. (Actually, I would suggest that a good DOM Level 2 tutorial would be even more useful for that set of questions...) However, just to keep things moving... // Bootstrap the Xerces DOM implementation DOMImplementation impl = org.apache.xerces.dom.DOMImplementationImpl.getDOMImplementation(); // Create a document and root element. Document newDoc = impl.createDocument(null,"orderSystem",null); // Retrieve the root element. Element orderSystem=newDoc.getDocumentElement(); // Define namespaces. Note that namespace declarations *must* be // in the namespace-for-namespaces, per DOM spec orderSystem.setAttributeNS( "http://www.w3.org/2000/xmlns/", "xmlns:ord", "http://www.nicholaschase.com/orders/"); orderSystem.setAttributeNS( "http://www.w3.org/2000/xmlns/", "xmlns:prod", "http://www.nicholaschase.com/products/"); // ... And so on. Caveat: This code has not been compiled and tested. But it should get you pointed in the right direction.
