From: Joern T. <joe...@go...> - 2010-04-13 12:58:52
|
Fraser, i do not have a xquery at all here. To debug your problems with load data via instance/@src i used our bookmarks.xhtml along with bookmarks.xml to track down the problem. In the first place i found a small bug in our filter which is fixed now. But nevertheless i couldn't get it to work. Instance loading works fine outside of eXist btw. After i've setup a remote debugging session i found out that eXist returns the bookmarks.xml with a html doctype decl which in turn forces betterform to handle it as text/plain and return a plain string. This handling is necessary from the XForms spec for handling replace="text" submissions but also results in an link-exception as the response is not a DOM (which would then become the new instance) but a string. I assume that there is some mapping in place (XQueryURLRewrite?) that expects that all .xml in under webapp become xhtml output. When placing the bookmarks.xml into the db everything works fine and the response is returned as xml! Please review your initial problematic files for this aspect - do you try to load from the filesystem or from the database? Joern On Tue, Apr 13, 2010 at 2:44 PM, Fraser Hore <fra...@gm...> wrote: > You could try the following declaration before your xquery expression: > declare option exist:serialize "method=xhtml media-type=application/xml > indent=yes"; > Hope it helps! > Fraser > > > On Tue, Apr 13, 2010 at 2:27 PM, Joern Turner <joe...@go...> > wrote: >> >> from my application (betterFORM XForms engine) i call a XML file >> (bookmarks.xml) via GET but i get it returned with contenttype >> 'text/html'. Is there something i have to configure to fix that (my >> file is located in webapp/data/bookmarks.xml. I'm using the standard >> 1.4.0 installation. >> >> >> ------------------------------------------------------------------------------ >> Download Intel® Parallel Studio Eval >> Try the new software tools for yourself. Speed compiling, find bugs >> proactively, and fine-tune applications for parallel performance. >> See why Intel Parallel Studio got high marks during beta. >> http://p.sf.net/sfu/intel-sw-dev >> _______________________________________________ >> Exist-open mailing list >> Exi...@li... >> https://lists.sourceforge.net/lists/listinfo/exist-open > > |