[jira] Created: (XMLBEANS-197) xpath with predicates does not work

View: New views
3 Messages — Rating Filter:   Alert me  

[jira] Created: (XMLBEANS-197) xpath with predicates does not work

by JIRA xmlbeans-dev@xml.apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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//phone[@location = 'work']

I got the error:
java.lang.RuntimeException:  Trying XBeans path engine... Trying Saxon... FAILED on $this//phone[@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.
-
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: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...


[jira] Updated: (XMLBEANS-197) xpath with predicates does not work

by JIRA xmlbeans-dev@xml.apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

     [ http://issues.apache.org/jira/browse/XMLBEANS-197?page=all ]

Primoz Hrvatin updated XMLBEANS-197:
------------------------------------

    Attachment: XPathTest.java

I have attached the java source with which I am testing.

> 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
>  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//phone[@location = 'work']
> I got the error:
> java.lang.RuntimeException:  Trying XBeans path engine... Trying Saxon... FAILED on $this//phone[@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.
-
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: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...


[jira] Closed: (XMLBEANS-197) xpath with predicates does not work

by JIRA xmlbeans-dev@xml.apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ 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//phone[@location = 'work']
> I got the error:
> java.lang.RuntimeException:  Trying XBeans path engine... Trying Saxon... FAILED on $this//phone[@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-unsubscribe@...
For additional commands, e-mail: dev-help@...