[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Errors when trying to use Xalan instead of Saxon
Hello Jason .. I had similar problems when moving to Xalan from MSXML ...Ofcourse i solved it now... Inorder to avoid these of xalan and xerces to be used i went to this "Latest Stable build" on http://xml.apache.org/dist/xalan-j/old/ which is basically xalan-j_2_0_0.zip along with which we added jaxp.jar Also i had clash with other xalan , xerces that comes sometimes with IDE's or Application Servers and Databases ..So basically you need to remove any classpath references for other forms of xml related jar which sometimes go unnoticed. hope it helps ..goodluck with it ... - kumar >>> jason.silva@xxxxxxxxxxx 07/22/02 02:40PM >>> Hello all, I was wondering if anyone knew of any differences between the Saxon 6.5.1 parser and the Xalan 2.4 parser. I am currently working on a project that uses Saxon, but we are attempting to migrate to the Xalan parser. The project has been working fine with Saxon but as soon as we attempt to use Xalan instead we get a transform.TransformerConfigurationException. The exception is as follows: javax.xml.transform.TransformerConfigurationException: javax.xml.transform.TransformerConfigurationException: javax.xml.transform.TransformerException: java.lang.ArrayIndexOutOfBoundsException at org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:767) There are a couple errors that follow, including some suspicious looking error: Caused by: java.lang.ArrayIndexOutOfBoundsException at org.apache.xml.utils.BoolStack.peek(BoolStack.java:172) at org.apache.xalan.processor.StylesheetHandler.pushSpaceHandling(StylesheetHandler.java:1592) at org.apache.xalan.processor.StylesheetHandler.startElement(StylesheetHandler.java:650) at org.apache.xml.utils.TreeWalker.startNode(TreeWalker.java:346) at org.apache.xml.utils.TreeWalker.traverse(TreeWalker.java:167) at org.apache.xalan.processor.TransformerFactoryImpl.processFromNode(TransformerFactoryImpl.java:225) Here is the snippet where the build fails. The line marked with the * is the exact line numer: Element root = transform.getDocumentElement(); if ( root.getTagName().equals("xsl:stylesheet") ) { *Transformer transformer = TransformerFactory.newInstance().newTransformer(new DOMSource(root/*transform*/)); transformer.transform(new DOMSource(model), result); } The transform variable is of type org.w3c.dom.Document Any help would be greatly appreciated. Thanks in Advance Jason Silva XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|