Unfortunately, Saxon "minor" versions are not backwards-compatible, so
keeping up with Saxon versions is a difficult proposition. Sticking with
Saxon 8.8 is the solution to your problem.
 
Radu


________________________________

        From: Hacking Bear [mailto:[EMAIL PROTECTED] 
        Sent: Wednesday, December 19, 2007 11:03 AM
        To: [email protected]
        Subject: xmlbean and SAXON 8.9/9.0
        
        
        hi,
        
        Any help for the problem I have? The same error occurs with
SAXON 9.0 as well.
        
        
                public final static String XQ_SIGNATURE = "declare
namespace ds='
        http://www.w3.org/2000/09/xmldsig#
<http://www.w3.org/2000/09/xmldsig#> ' "
                                + "$this//ds:Signature[1]";
                SignatureType[] signatures = (SignatureType[])
xbean.selectPath(XMLBeanSignatureUtils.XQ_SIGNATURE);
        
        ------
        
        
        My XmlBean was running fine on SAXON8.8, but failed when the
saxon jar is
        replaced with the 8.9 version (full package)
        
        I got the stack trace:
        
        java.lang.RuntimeException: Trying XBeans path engine... Trying
XQRL...
        
        Trying Saxon... FAILED on declare namespace
saml='urn:oasis:names:tc:SAML:
        1.0:protocol' .//saml:Response[1]
        java.lang.RuntimeException: Trying XBeans path engine... Trying
XQRL...
        Trying Saxon... FAILED on declare namespace
saml='urn:oasis:names:tc:SAML:
        
        1.0:protocol' .//saml:Response[1]
        at
org.apache.xmlbeans.impl.store.Path.getCompiledPath(Path.java:131)
        at
org.apache.xmlbeans.impl.store.Path.getCompiledPath(Path.java:91)
        at org.apache.xmlbeans.impl.store.Cursor._selectPath
        (Cursor.java:902)
        at
org.apache.xmlbeans.impl.store.Cursor.selectPath(Cursor.java:2634)
        at org.apache.xmlbeans.impl.values.XmlObjectBase.selectPath(
        XmlObjectBase.java:431)
        at org.apache.xmlbeans.impl.values.XmlObjectBase.selectPath
        (
        XmlObjectBase.java:415)
        
        I have xbean.jar and xbean_xpath.jar in the classpath.
        
        I googled around including this mailing list but couldn't find
out a
        solution. Downgrading is not quite an option for me. Any idea on
how this
        
        can be fixed?
        
        Thanks a lot.


Notice:  This email message, together with any attachments, may contain 
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated 
entities,  that may be confidential,  proprietary,  copyrighted  and/or legally 
privileged, and is intended solely for the use of the individual or entity 
named in this message. If you are not the intended recipient, and have received 
this message in error, please immediately return this by email and then delete 
it.

Reply via email to