hi all

By compiling the 1.0-beta.8 version, in
org.jaxen.jdom.DocumentNavigator.java I had to change the call to
org.jdom.Text.getText() to org.jdom.Text.getValue() in the methods
getTextStringValue and getElementStringValue. This is due to the fact
that org.jdom.Text doesn't have a getText method, see: 
http://jdom.org/docs/apidocs/org/jdom/Text.html

However, now my unit test fail, i.e. ant test.jdom

 [junit] Document [xml/evaluate.xml]
    [junit] Initial Context :: /
    [junit]   Select :: evaluate('//jumps/*')
    [junit]     Expected Size :: 3
    [junit]     Result Size   :: 3
    [junit]   Select :: evaluate('//jumps/object/dog')
    [junit]     Expected Size :: 1
    [junit]     Result Size   :: 1
    [junit]   Select :: evaluate('//jumps/object')/evaluate
    [junit]     Expected Size :: 0
    [junit]     Result Size   :: 0
    [junit]   Select :: evaluate('//jumps/object')/dog
    [junit]     Expected Size :: 1
    [junit]     Result Size   :: 1
    [junit]   Select :: evaluate('//jumps/*')/dog
    [junit]     Expected Size :: 1
    [junit]     Result Size   :: 1
    [junit]   Select :: //metatest[ evaluate(@select) = . ]
    [junit]     Expected Size :: 1
    [junit]     Result Size   :: 0
    [junit]       ## FAILED
    [junit]       ## xpath:
/descendant-or-self::node()/child::metatest[(evaluate(attribute::select)
= self::node())]
    [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 2.066
sec

BUILD FAILED

..../jaxen-1.0-beta-8/build.xml:277: Test
org.jaxen.jdom.DocumentNavigatorTest failed


All help will be appreciated.

Thanx

Morten Vinje

_______________________________________________
Jaxen-interest mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jaxen-interest

Reply via email to