M Arora wrote:
> But I am getting the correct ouput with DOM Parser but not with java
> Xerces parser. Can you suggest me whats the difference
DOM Parser? In Java? Xerces is one implementation of that if DOM Parser
refers to
<http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/parsers/DocumentBuilder.html>
But you are talking about problems with the output of an XSLT stylesheet
and Xerces is a parser and not an XSLT processor so you need to find out
which XSLT processor you use to get that output.
If you are using the standard Java 1.4/1.5 APIs to perform an XSLT
transformation then you would use javax.xml.transform.TransformerFactory
to create an implementation of javax.xml.transform.Transformer. Which
implementation is actually used when you run a Java program depends on
certain properties respectively the class path.
See
<http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/transform/TransformerFactory.html#newInstance()>
--
Martin Honnen
http://JavaScript.FAQTs.com/