[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-dev
Subject:    RE: [jira] Created: (XMLBEANS-134) Simple XPath not working
From:       "Yana Kadiyska" <ykadiysk () bea ! com>
Date:       2005-03-29 19:04:18
Message-ID: 4B2B4C417991364996F035E1EE39E2E102B0C291 () uskiex01 ! amer ! bea ! com
[Download RAW message or body]

Are you using the binary dist of XMLBeans or did you build from sourse?
If source, which revision of subversion do you currently have? Do you
have saxon version 8.1.1?

-----Original Message-----
From: Roshan Punnoose (JIRA) [mailto:xmlbeans-dev@xml.apache.org] 
Sent: Tuesday, March 29, 2005 10:33 AM
To: Yana Kadiyska
Subject: [jira] Created: (XMLBEANS-134) Simple XPath not working

Simple XPath not working
------------------------

         Key: XMLBEANS-134
         URL: http://issues.apache.org/jira/browse/XMLBEANS-134
     Project: XMLBeans
        Type: Bug
  Components: XPath  
    Versions: Version 2 Beta 1    
    Reporter: Roshan Punnoose


I try and run this:

Document.selectPath("//event-ref");

for this xml:

...
<event-refs>
 <event-ref id=".."/>
</event-refs>


and get this trace:

java.lang.RuntimeException: Path too complex for xmlbeans: //event-ref
	at
org.apache.xmlbeans.impl.newstore2.Path.getCompiledPath(Path.java:156)
	at
org.apache.xmlbeans.impl.newstore2.Path.getCompiledPath(Path.java:89)
	at
org.apache.xmlbeans.impl.newstore2.Cursor._selectPath(Cursor.java:860)
	at
org.apache.xmlbeans.impl.newstore2.Cursor.selectPath(Cursor.java:2588)
	at
org.apache.xmlbeans.impl.values.XmlObjectBase.selectPath(XmlObjectBase.j
ava:427)
	at
org.apache.xmlbeans.impl.values.XmlObjectBase.selectPath(XmlObjectBase.j
ava:411)

I have xbean_xpath.jar (2.0 beta 1), saxon8-xpath.jar, and xbean.jar on
my classpath. It doesn't even look like it's using the saxon xpath api
at all. What could be the problem?


-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira




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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic