You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by rliguori <ro...@hotmail.com> on 2011/01/18 16:38:38 UTC

Source of XPath selectors

Documentation (http://activemq.apache.org/selectors.html) states the
following:

" Using XPath to filter messages
Apache ActiveMQ also supports XPath based selectors when working with
messages containing XML bodies. To use an XPath selector use the following
syntax
XPATH '//title[@lang=''eng'']' "

Is this in support of XPath 1.0 or XPath 2.0.... also what library supports
this?  Xalan, Saxon, etc... I didn't see an XPath library in the libs folder
or subfolders.

Thanks!


-- 
View this message in context: http://activemq.2283324.n4.nabble.com/Source-of-XPath-selectors-tp3221333p3221333.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Source of XPath selectors

Posted by rliguori <ro...@hotmail.com>.
Thanks for the info!

I created this JIRA issue for an enhancement request of XPath 2.0 support:

Add XPath 2.0 support to ActiveMQ
https://issues.apache.org/jira/browse/AMQ-3151

Thanks,
Robert
-- 
View this message in context: http://activemq.2283324.n4.nabble.com/Source-of-XPath-selectors-tp3221333p3230262.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Source of XPath selectors

Posted by Gary Tully <ga...@gmail.com>.
there are no plans at the moment, the use of the Xalan xpath api is
plugable and we love contributions :-) - see:
http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/filter/XPathExpression.java?view=markup

For a start, raise an enhancement jira for xpath 2.0 support so it is not lost.

re: the jars in optional, I think the main motivator is reducing a few
meg from the distribution. it has not been shipped since 2006

On 19 January 2011 17:39, rliguori <ro...@hotmail.com> wrote:
>
> Great Gary, thanks for the info!
>
> Any plans to go to Xalan 2.7.1 or selectively decide between XPath 1.0
> (Xalan) and XPath 2.0 (e.g., Saxon)?
>
> Also, why don't I see the Xalan JAR under the lib folder/subfolders?
>
> Robert
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Source-of-XPath-selectors-tp3221333p3225430.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>



-- 
http://blog.garytully.com
http://fusesource.com

Re: Source of XPath selectors

Posted by rliguori <ro...@hotmail.com>.
Great Gary, thanks for the info!

Any plans to go to Xalan 2.7.1 or selectively decide between XPath 1.0
(Xalan) and XPath 2.0 (e.g., Saxon)?

Also, why don't I see the Xalan JAR under the lib folder/subfolders?

Robert
-- 
View this message in context: http://activemq.2283324.n4.nabble.com/Source-of-XPath-selectors-tp3221333p3225430.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Source of XPath selectors

Posted by Gary Tully <ga...@gmail.com>.
It requires xalan, trunk currently tests against version 2.6.0

On 18 January 2011 15:38, rliguori <ro...@hotmail.com> wrote:
>
> Documentation (http://activemq.apache.org/selectors.html) states the
> following:
>
> " Using XPath to filter messages
> Apache ActiveMQ also supports XPath based selectors when working with
> messages containing XML bodies. To use an XPath selector use the following
> syntax
> XPATH '//title[@lang=''eng'']' "
>
> Is this in support of XPath 1.0 or XPath 2.0.... also what library supports
> this?  Xalan, Saxon, etc... I didn't see an XPath library in the libs folder
> or subfolders.
>
> Thanks!
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Source-of-XPath-selectors-tp3221333p3221333.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>



-- 
http://blog.garytully.com
http://fusesource.com