[ 
https://issues.apache.org/jira/browse/XMLBEANS-197?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jacob Danner closed XMLBEANS-197.
---------------------------------

       Resolution: Fixed
    Fix Version/s: Version 2.4.1 

Sample code now working, XmlBeans is using version 9 of Saxon 
(saxonb9-0-0-4j.zip)
Output Result
[0] = <xml-fragment location="work">(425)555-5665</xml-fragment>

> xpath with predicates does not work
> -----------------------------------
>
>                 Key: XMLBEANS-197
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-197
>             Project: XMLBeans
>          Issue Type: Bug
>    Affects Versions: Version 2
>         Environment: JDK 1.4.2_08
>            Reporter: Primoz Hrvatin
>             Fix For: Version 2.4.1 
>
>         Attachments: XPathTest.java
>
>
> If I use Saxon 8.5.1 with XMLBeans the xpath expression with a simple 
> predicate does not work.
> I tried the example in the documentation on the website:
> <?xml version="1.0" encoding="UTF-8"?>
> <employees>
>   <employee>
>     <name>Fred Jones</name>
>     <address location="home">
>       <street>900 Aurora Ave.</street>
>       <city>Seattle</city>
>       <state>WA</state>
>       <zip>98115</zip>
>     </address>
>     <address location="work">
>       <street>2011 152nd Avenue NE</street>
>       <city>Redmond</city>
>       <state>WA</state>
>       <zip>98052</zip>
>     </address>
>     <phone location="work">(425)555-5665</phone>
>     <phone location="home">(206)555-5555</phone>
>     <phone location="mobile">(206)555-4321</phone>
>   </employee>
> </employees>
> The query I used was:
> $this//pho...@location = 'work']
> I got the error:
> java.lang.RuntimeException:  Trying XBeans path engine... Trying Saxon... 
> FAILED on $this//pho...@location='work']
> ...stack trace ....
> However, if I use Saxon 8.1.1 jar as stated in the page, it  works OK.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@xmlbeans.apache.org
For additional commands, e-mail: dev-h...@xmlbeans.apache.org

Reply via email to