I currently invoke Xalan like this, t is a Templates
object, reader is a Reader:

        Transformer transformer = t.newTransformer();
        xalanOutStream = new ByteArrayOutputStream();

        // Added to hook in my EntityResolver
        InputSource inputSource = new InputSource(reader);

        XMLReader xmlReader =
XMLReaderFactory.createXMLReader();

        xmlReader.setEntityResolver(entityResolver);
        // END Added to hook in my EntityResolver

        SAXSource saxSource = new SAXSource(xmlReader,
inputSource);

        transformer.transform(saxSource, new
StreamResult(xalanOutStream)); 

In the D13 release will this use DTM? I a not clear
how/when DTM is used or not.

Thanks!

-Chris.


__________________________________________________
Do You Yahoo!?
Buy the perfect holiday gifts at Yahoo! Shopping.
http://shopping.yahoo.com

Reply via email to