From: <sju...@ko...> - 2004-05-13 11:29:26
|
Hi, Querying a document with mostly XInclude statements works fine in the=20 Java client, but when running the same query from the xquery page=20 (host/exist/xquery/xquery.xq), I get a Cocoon error telling me that the=20= XIncluded document could not be found, with reference to an absolute=20 path in the OS, as if the XInclude expansion was not done in eXist as=20 expected: Query: for $entry in //entry[@id &=3D '8'] return $entry Source xml file snippet: <termCenter xmlns:xi=3D"http://www.w3.org/2001/XInclude" > ... <entry id=3D"8"> <topicClass top=3D"G" mid=3D"G6910" botm=3D"GN6911"/> <entryref xml:lang=3D"sme"> <xi:include=20 href=3D"terms-sme.xml#xpointer(//entry[@id=3D'al=E1=9A#S'])" /> </entryref> <entryref xml:lang=3D"nor"> <xi:include=20 href=3D"terms-nor.xml#xpointer(//entry[@id=3D'bakketopp#S'])" /> </entryref> </entry> ... </termCenter> Cocoon error message: ------------ An Error Occurred XMLDBException occurred: Exception occured during xinclude processing,=20= and did not find a fallback element: Resouce not found:=20 file:/Library/Tomcat/webapps/exist/xquery/terms-sme.xml ------------ The XIncluded documents are stored in eXist in the same collection. Running the same query in the Java client returns the expected code,=20 with the XInclude elements expanded. Any idea about what's wrong? Environment: conf.xml - only defaults, nothing changed embedded in Tomcat 4.1.24 OS: MacOS X 10.3.3 Java: 1.4.2 Sjur |