You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2001/10/12 12:22:29 UTC
DO NOT REPLY [Bug 4118] New: -
There is no way to convert org.w3c.dom.Document to org.apache.xalan.xsltc.dom.DOMImpl
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=4118>.
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=4118
There is no way to convert org.w3c.dom.Document to org.apache.xalan.xsltc.dom.DOMImpl
Summary: There is no way to convert org.w3c.dom.Document to
org.apache.xalan.xsltc.dom.DOMImpl
Product: XalanJ2
Version: 2.1.0
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Normal
Priority: Other
Component: org.apache.xalan
AssignedTo: xalan-dev@xml.apache.org
ReportedBy: hahn_jonathan@emc.com
Currently there is no way to convert org.w3c.dom.Document to
org.apache.xalan.xsltc.dom.DOMImpl. Without
org.apache.xalan.xsltc.dom.DOMImpl, there is no way of using translets because
the xml document, org.w3c.dom.Document is dynamically generated.
DOMImpl.readExternal(java.io.ObjectInput in) cannot read the ObjectInputStream
to from serialized org.w3c.dom.Document .
Document doc = generated from existing application;
DOMImpl dom = new DOMImpl();
Serializer serializer = SerializerFactory.getSerializer
(OutputProperties.getDefaultMethodProperties("xml"));
ByteArrayOutputStream bout = new ByteArrayOutputStream() ;
ObjectOutputStream outSream = new ObjectOutputStream(bout);
serializer.setOutputStream(bout);
serializer.asDOMSerializer().serialize(doc);
ByteArrayInputStream bin = new ByteArrayInputStream(bout.toByteArray
()) ;
ObjectInputStream oin = new ObjectInputStream(bin);
dom.readExternal(oin);
Error message::XML Reader could not read xml document 'null
It give this error message, but the Document is not null. I tested the document
with xslt and it outputs correctly.
jon