You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by Brian Minchau <mi...@ca.ibm.com> on 2006/10/03 22:17:08 UTC

Re: XPathAPI.selectSingleNode - throws TransformerException

Paul,
it is hard to say what would cause XPathAPI.selecSingleNode to throw a
TransformerException.


Such a TransformerException could be:
javax.xml.transform.TransformerException
javax.xml.transform.TransformerConfigurationException
org.apache.xpath.XPathException


The String passed in could be critical as it must be a valid XPath string.

Deeper down in the XPath code any number of things could throw such an
exception.
This method you mention can call
  org.apache.xpath.XPathAPI.selectNodeIterator,
which in turn can call
  org.apache.xpath.XPathAPI.eval
which calls
  org.apache.xpath.XPath.execute

XPath.execute could be throwing the exception.

Unless this question is related to a specific problem I can't say much more
without more details of that problem.




- Brian
- - - - - - - - - - - - - - - - - - - -
XSLT Development, IBM Toronto
e-mail:        minchau@ca.ibm.com




                                                                           
             Paul Tomsic                                                   
             <ptomsic@yahoo.co                                             
             m>                                                         To 
                                       xalan-j-users@xml.apache.org        
             09/12/2006 02:19                                           cc 
             PM                                                            
                                                                   Subject 
                                       XPathAPI.selectSingleNode - throws  
                                       TransformerException                
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




what would cause the "selectSingleNode" to throw a
transformerException?

thanks