I am trying trying to understand how to take a pre-existing DOM document
(using the org.apache.xerces.DOMImpl) and either translate it into a
org.apache.xalan.xsltc.dom.DOMImpl.

The real problem that I am trying to figure out is how to take the
DOM(xerces) that I have and transform it using a translet.  This might be a
very simple thing to do and I am just not understanding the process.....

As near as I can tell the DocumentCache requires that you have a uri before
you can use it.  It then takes that URI and the document associated with it
and passes it to the DOMBuilder to generate the DOMImpl(xsltc).  I am
building my DOM out of the database and it only exists in memory and I have
no URI for it.

The other sample (JAXPTransletOneTransformation.java) shows a way to
transform using the TransformerFactory.  I am not clear how the factory
makes use of the translet.  In the example, you pass in a uri to a
stylesheet and allow the factory to generate a translet(?) and then use that
translet to generate the transormed document.  How do you refer to a
pre-existing translet in this case?



I am relatively new to a lot of this stuff so if my ignorance is showing
through I apologize.
Any help would be appreciated.
Gordon Cooke

Reply via email to