xpath with predicates does not work
-----------------------------------

         Key: XMLBEANS-197
         URL: http://issues.apache.org/jira/browse/XMLBEANS-197
     Project: XMLBeans
        Type: Bug
    Versions: Version 2    
 Environment: JDK 1.4.2_08

    Reporter: Primoz Hrvatin


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//[EMAIL PROTECTED] = 'work']

I got the error:
java.lang.RuntimeException:  Trying XBeans path engine... Trying Saxon... 
FAILED on $this//[EMAIL PROTECTED]'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.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to