Hi Everybody... I need your help on this... This is quite urgent... -----Original Message----- From: Asaf Lahav [mailto:[EMAIL PROTECTED] Sent: Thursday, April 26, 2007 5:57 PM To: dev@xmlbeans.apache.org Subject: RE: URGENT: Could not resolve the node to a handle
tried it... didn't work either... -----Original Message----- From: Chris [mailto:[EMAIL PROTECTED] Sent: Thursday, April 26, 2007 1:39 PM To: dev@xmlbeans.apache.org Subject: Re: URGENT: Could not resolve the node to a handle If you want to use the saxon XPath engine (to use xpath2 for example) you should explicitly set the system parameter, not rely on the classpath. Use: System.setProperty("javax.xml.transform.TransformerFactory", "net.sf.saxon.TransformerFactoryImpl"); before initialising a singleton factory. or pass it to the jvm as a parameter: java myclass -Djavax.xml.transform.TransformerFactory=net.sf.saxon.TransformerFactoryImpl HTH Chris Asaf Lahav wrote: > Sorry for cross posting. it is urgent. > > > > Hi all, > > > > First I wanted to state that the code that is currently failing worked > perfectly until recently. And I can't recall of any changes that were > made to the environment in which the JVM is running. > > The problem is that when I perform the following code on a Xmlbean dom > node, it fails: > > public static Node SeekNode(XPathExpression expression, Element element) > throws XPathExpressionException{ > > return (Node)expression.evaluate(element,XPathConstants.NODE); > > } > > > > SOMETIMES fails. > > > > Apparently, the XPathExpression actual object is resolved to jaxp xpath > engine even though SAXON is available in classpath. Could that be the > problem? > > > > Any help would be appreciated. > > Thanks in advance, > > Asaf > > > This email was received from the INTERNET and scanned by the Government > Secure Intranet Anti-Virus service supplied by Cable&Wireless in > partnership with MessageLabs. (CCTM Certificate Number 2006/04/0007.) In > case of problems, please call your organisation's IT Helpdesk. > Communications via the GSi may be automatically logged, monitored and/or > recorded for legal purposes. -- Chris HMGCC The information contained in this message (and any attachments) may be confidential and is intended for the sole use of the named addressee. Access, copying, alteration or re-use of the e-mail by anyone other than the intended recipient is unauthorised. If you are not the intended recipient please advise the sender immediately by returning the e-mail and deleting it from your system. This information may be exempt from disclosure under Freedom Of Information Act 2000 and may be subject to exemption under other UK information legislation. Refer disclosure requests to the Information Officer. The original of this email was scanned for viruses by the Government Secure Intranet Anti-Virus service supplied by Cable&Wireless in partnership with MessageLabs. (CCTM Certificate Number 2006/04/0007.) On leaving the GSi this email was certified virus free. Communications via the GSi may be automatically logged, monitored and/or recorded for legal purposes. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]