Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Why is xom 1.1 only using parts of jaxen?

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: "Manfred Nysted Berry" <Manfred.Berry AT fast.no>
  • To: "Michael Kay" <mike AT saxonica.com>, <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] Why is xom 1.1 only using parts of jaxen?
  • Date: Thu, 13 Jul 2006 14:10:40 +0200



That's where we are right now :-(

Anyway, it would be very helpful if the included jaxen version would be
made visible.
Right now it's really hard to see which jaxen version is included in XOM


-----Original Message-----
From: Michael Kay [mailto:mike AT saxonica.com]
Sent: Thursday, July 13, 2006 1:37 PM
To: Manfred Nysted Berry; xom-interest AT lists.ibiblio.org
Subject: RE: [XOM-interest] Why is xom 1.1 only using parts of jaxen?

This does look like a potential source of integration nightmares, for
example if someone has an application that uses XOM for one of its input
files and also uses some other product that uses Jaxen. If XOM is to
ship a
subset of Jaxen, it would be better to change the package names.

Michael Kay
http://www.saxonica.com/

> -----Original Message-----
> From: xom-interest-bounces AT lists.ibiblio.org
> [mailto:xom-interest-bounces AT lists.ibiblio.org] On Behalf Of
> Manfred Nysted Berry
> Sent: 13 July 2006 08:18
> To: xom-interest AT lists.ibiblio.org
> Subject: [XOM-interest] Why is xom 1.1 only using parts of jaxen?
>
> Hi
>
>
>
> I just realized that xom 1.1 is only using parts of the jaxen library.
>
>
>
> If I for example try to do the following:
>
> try {
>
> Document doc = SAXReader().read(somefile);
>
> doc.valueOf("//version/@product-version");
>
> } catch (Exception ex) {
>
> System.out.println(ex.getMessage());
>
> }
>
>
>
> I get the exception:
>
> Invalid XPath expression: '//version/@product-version: Caused by:
> org/jaxen/dom4j/Dom4JXPath
>
>
>
> The reason for that is that the Dom4JXPath class is not
> included in xom.
>
> What is the reason to not include this class, or actually to
> not include everything of jaxen.
>
>
>
> I know I can solve this by just including the jaxen.jar file
> as well but than shy is the jaxen included in xom?
>
> Are there any better ways to resolve this?
>
>
>
> Thanks for enlightening me. :-)
>
> _______________________________________________
> XOM-interest mailing list
> XOM-interest AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/xom-interest






Archive powered by MHonArc 2.6.24.

Top of Page