Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 87007 invoked by uid 500); 14 Mar 2001 21:04:06 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 86924 invoked from network); 14 Mar 2001 21:04:04 -0000 Reply-To: From: "Michael Kay" To: , Subject: RE: [C2][SAXON] NodeIterator/NodeList in SAXON extensions. Date: Wed, 14 Mar 2001 21:00:30 -0000 Message-ID: <000801c0acca$a547eee0$48453c3e@oemcomputer> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Importance: Normal In-Reply-To: <20010212211051.7183.qmail@web121.yahoomail.com> X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Saxon will now call the version of getParameterSource() that takes a NodeList parameter. It won't call the one that takes a NodeIterator, 'cos I don't support that yet (and it's not in XSLT 1.1 either), and it doesn't work if both methods are present, because Saxon doesn't yet support polymorphic methods. New version should be out in the next few days; I've got a bit of a backlog of bug fixes to apply first, then some regression testing. Mike Kay > -----Original Message----- > From: Davanum Srinivas [mailto:dims@yahoo.com] > Sent: 12 February 2001 21:11 > To: mhkay@iclway.co.uk > Cc: cocoon-dev@xml.apache.org > Subject: RE: [C2][SAXON] NodeIterator/NodeList in SAXON extensions. > > > Mike, > > Included is an stripped-down extension sample which works > with Xalan and fails with SAXON. If we > could resolve this Cocoon would be able to use SAXON as a > replacement for Xalan... Can you please > help? If we could get SAXON to call either entry point named > getParameterSource then we are all > set. > > Thanks, > dims > > PS1: Please look into run.bat for running SAXON and run2.bat > for running under Xalan. > PS2: Here's the stacktrace > > D:\junk\tryext>java TraxExamples date.xml date.xsl > >>>> isFactory called: > Error at xsl:value-of on line 25 of file:/D:/junk/tryext/date.xsl: > Argument is of wrong type: argument type mismatch > EXCEPTION: javax.xml.transform.TransformerException: Argument > is of wrong type > ; SystemID: file:/D:/junk/tryext/date.xsl; Line#: 25; Column#: -1 > javax.xml.transform.TransformerException: Argument is of wrong type > at > com.icl.saxon.style.StyleElement.styleError(StyleElement.java:784) > at > com.icl.saxon.style.StyleElement.processChildren(StyleElement. > java:613) > at com.icl.saxon.style.XSLIf.process(XSLIf.java:77) > at > com.icl.saxon.style.StyleElement.processChildren(StyleElement. > java:611) > at com.icl.saxon.style.XSLForEach.process(XSLForEach.java:93) > at > com.icl.saxon.style.StyleElement.processChildren(StyleElement. > java:611) > at > com.icl.saxon.style.LiteralResultElement.process(LiteralResult > Element.java:288) > at > com.icl.saxon.style.StyleElement.processChildren(StyleElement. > java:611) > at > com.icl.saxon.style.XSLTemplate.realExpand(XSLTemplate.java:195) > at > com.icl.saxon.style.XSLTemplate.expand(XSLTemplate.java:187) > at > com.icl.saxon.style.TemplateExpander.start(TemplateExpander.java:35) > at com.icl.saxon.Controller.visit(Controller.java:214) > at > com.icl.saxon.Controller.applyTemplates(Controller.java:259) > at com.icl.saxon.Controller.run(Controller.java:176) > at > com.icl.saxon.Controller.transformDocument(Controller.java:883) > at com.icl.saxon.Controller.transform(Controller.java:818) > at TraxExamples.exampleSimple1(TraxExamples.java:238) > at TraxExamples.main(TraxExamples.java:68) > --------- > java.lang.IllegalArgumentException: argument type mismatch > at java.lang.reflect.Method.invoke(Native Method) > at > com.icl.saxon.expr.FunctionProxy.evaluate(FunctionProxy.java:361) > at > com.icl.saxon.expr.Expression.evaluateAsString(Expression.java:116) > at > com.icl.saxon.expr.Expression.outputStringValue(Expression.java:127) > at com.icl.saxon.style.XSLValueOf.process(XSLValueOf.java:93) > at > com.icl.saxon.style.StyleElement.processChildren(StyleElement. > java:611) > at com.icl.saxon.style.XSLIf.process(XSLIf.java:77) > at > com.icl.saxon.style.StyleElement.processChildren(StyleElement. > java:611) > at com.icl.saxon.style.XSLForEach.process(XSLForEach.java:93) > at > com.icl.saxon.style.StyleElement.processChildren(StyleElement. > java:611) > at > com.icl.saxon.style.LiteralResultElement.process(LiteralResult > Element.java:288) > at > com.icl.saxon.style.StyleElement.processChildren(StyleElement. > java:611) > at > com.icl.saxon.style.XSLTemplate.realExpand(XSLTemplate.java:195) > at > com.icl.saxon.style.XSLTemplate.expand(XSLTemplate.java:187) > at > com.icl.saxon.style.TemplateExpander.start(TemplateExpander.java:35) > at com.icl.saxon.Controller.visit(Controller.java:214) > at > com.icl.saxon.Controller.applyTemplates(Controller.java:259) > at com.icl.saxon.Controller.run(Controller.java:176) > at > com.icl.saxon.Controller.transformDocument(Controller.java:883) > at com.icl.saxon.Controller.transform(Controller.java:818) > at TraxExamples.exampleSimple1(TraxExamples.java:238) > at TraxExamples.main(TraxExamples.java:68) > > > --- Michael Kay wrote: > > A question about using a DOM NodeIterator to represent an > XSLT node-set: > > what is getRoot() supposed to return? > > > > Mike Kay > > > > > -----Original Message----- > > > From: Davanum Srinivas [mailto:dims@yahoo.com] > > > Sent: 08 February 2001 17:54 > > > To: mhkay@iclway.co.uk > > > Subject: [C2][SAXON] NodeIterator in SAXON extensions. > > > > > > > > > Mike, > > > > > > Am an semi-active developer of Apache's Cocoon2 Project. We > > > currently use Xerces1.2.3 and > > > Xalan2.0.0. We want to be able to plugin SAXON instead of > > > Xalan. We have standardized on TRaX so > > > it should not be too big a problem. But one major problem is > > > that we have some extensions which > > > can accept NodeIterator's (see code snippet below). I went > > > through the sources for Saxon6.2 and > > > did not find any support for NodeIterator. Is this planned? > > > Any suggestions are welcome. > > > > > > Thanks, > > > dims > > > > > > public class XSLTFactoryLoader implements Loggable { > > > ... > > > ... > > > public String getClassSource(String className, String > > > prefix, String pattern, NodeIterator > > > conf) > > > throws ClassNotFoundException, InstantiationException, > > > IllegalAccessException, Exception { > > > ... > > > } > > > ... > > > } > > > > > > ===== > > > Davanum Srinivas, JNI-FAQ Manager > > > http://www.jGuru.com/faq/JNI > > > > > > __________________________________________________ > > > Do You Yahoo!? > > > Yahoo! Auctions - Buy the things you want at great prices. > > > http://auctions.yahoo.com/ > > > > > > ===== > Davanum Srinivas, JNI-FAQ Manager > http://www.jGuru.com/faq/JNI > > __________________________________________________ > Do You Yahoo!? > Get personalized email addresses from Yahoo! Mail - only $35 > a year! http://personal.mail.yahoo.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org