From: Simon K. <ke...@ip...> - 2002-11-07 13:20:31
|
Hi All, I am just doing some work on xquery LFWR routines to fetch and structure XML. But when I try to send this to eXist it throws this error. org.apache.xmlrpc.XmlRpcException: java.lang.Exception: org.exist.EXistException: unexpected char: '{' at org.apache.xmlrpc.XmlRpcClient$Worker.execute(XmlRpcClient.java) at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java) at org.katrin.connection.ExistXMLDBConnection.writeQry(ExistXMLDBConnection.jav a:171) at org.katrin.request.XQueryRequest.send(XQueryRequest.java:64) at org.katrin.request.XQueryRequest.request(XQueryRequest.java:40) at Tester.main(Tester.java:61) Does eXist implement LFWR or is it only XPath content searches that can be done. Regards Simon THIS IS THE SEARCH SENT I borrowed these from another xquery engine just to test it out. define element bib { (type Book)*} define type Book { element book { attribute year {xs:integer}, element title {xs:string}, (type Author+ | type Editor+), element publisher {xs:string}, element price {xs:float} } } define type Author { element author { element last {xs:string}, element first {xs:string} } } define type Editor { element editor { element last {xs:string}, element first {xs:string}, element affiliation {xs:string} } } define element reviews { type BookR*} define type BookR { element entry { element title {xs:string}, element price {xs:float}, element review {xs:string} } } let $bib := validate as element bib (document("data/xmp-data.xml")/bib), $review := validate as element reviews (document("data/Q5xmp-data.xml")/reviews) for $b in $bib/book, $r in $review/entry where $b/title = $r/title return <book> { $b/title, $b/author, $r/review } </book> Institut fuer Prozessdatenverarbeitung und Elektronik, Forschungszentrum Karlsruhe GmbH, Postfach 3640, D-76021 Karlsruhe, Germany. Tel: (+49)/7247 82-4042 E-mail : ke...@ip... |