Mark Wilson I am the creator of TopXML. I am available for international and local (Australia) contracts. I am a Solution Architect/Business Analyst. I have worked in IT in several countries (NZ, Australia, South Africa, UK) building and training teams for government and very large non-governmental organizations. I am ex-Microsoft Consulting Services. I wrote the first book on Microsoft XML published in 2000 called XML Programming with VB and ASP. Most recently I have been building tools for the SEO industry. Ask me for a 37 point SEO health-checkup for your website.
First posted :
03/24/2008
Times viewed :
800
Xalan: The org.apache.xalan.transformer.TransformerIdentityImpl Class
This
class implements an identity transformer for
SAXTransformerFactory.newTransformerHandler() and
TransformerFactory.newTransformer(). It simply feeds SAX events directly to a
serializer ContentHandler, if the result is a stream. If the result is a DOM,
it will send the events to DOMBuilder. If the result is another content
handler, it will simply pass the events on.
I have
never used this class in my programming. And of source, the current XALAN I
have is Beta version. So I am not sure whether examples related to this class
will work in your system or not.
Method Overviews
From
Users perspective, almost all methods in this class are important. As I have
mentioned in Overview that this class is an identity class and It simply feeds
SAX events directly to a serializer ContentHandler, if the result is a stream.
If the result is a DOM, it will send the events to DOMBuilder. So I would
prefer to use other transformations available.
Example of transform(Source source, Result outputTarget()
This method converts source tree into result tree.
TransformerIdentityImpl transformerIdentity = new
TransformerIdentityImpl();