[ 
https://issues.apache.org/jira/browse/CAMEL-4759?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13174782#comment-13174782
 ] 

Raul Kripalani commented on CAMEL-4759:
---------------------------------------

Claus, it looks like there is no way to find what the platform default XPath 
implementation is.
ServiceLoader doesn't help because as the XPathFactory javadoc specifies...

{quote}
Platform default XPathFactory is located in a platform specific way. There must 
be a platform default XPathFactory for the W3C DOM, i.e. 
DEFAULT_OBJECT_MODEL_URI.
{quote}

In fact, in the Sun JDK the platform default XPathFactory is not even 
registered via META-INF/services. Maybe someone who has the IBM JDK installed 
could do a little investigation to find out the name of the default Impl class, 
and we could spice up the logic in this test to use that one if the JDK is 
IBM's.
                
> Balance up xpath XML element with Java DSL equivalent
> -----------------------------------------------------
>
>                 Key: CAMEL-4759
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4759
>             Project: Camel
>          Issue Type: Sub-task
>          Components: camel-core, camel-saxon
>    Affects Versions: 2.8.4, 2.9.0
>            Reporter: Raul Kripalani
>         Attachments: xpathBalancingAndNamespaceLogging.diff
>
>
> The <xpath> XML element in Spring DSL doesn't allow to set the following 
> options which are available on Java DSL:
> * factory
> * object model
> * shortcut to use Saxon
> These options should be implemented as attributes on the xpath XML element, 
> e.g.:
> {code}
> <xpath factory="net.sf.saxon.xpath.XPathFactoryImpl">...</xpath>
> {code}
> {code}
> <xpath objectModel="http://saxon.sf.net/jaxp/xpath/om";>...</xpath>
> {code}
> (this one somehow feels ugly, is the objectModel supposed to be a namespace?)
> {code}
> <xpath saxon="true">...</xpath>
> {code}
> Only one should be allowed at a time.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to