[Xsltforms-support] media type relating to results from a 'replace=all' submission
Brought to you by:
alain-couthures
From: Chris H. <bc...@sh...> - 2014-06-04 10:11:37
|
Hello xsltforms-support, good morning Question: Initially before I go into this matter deeper, please can Alain, or any one else, briefly explain what happens in xsltforms for a submission where the attribute replace="all" is present? I am particularly interested in how content-type/media-type is handled and where in the .js this happens. Background: As background to this, I have an xform returned from a GET to a xquery in eXist-db. This is displayed correctly, however the content type showing in latest FF using the tools/pageinfo menu option, is text/html, where as 'LiveHeaders' addon shows application/xhtml+xml was, as coded, sent for the traced Response part. When I submit from this form using a 'POST' method with 'replace' set as 'all', the xquery called, returns correctly formed xml as application/xml. Unfortunately, it is only seen as text/html and doesnt display as an XML tree as would be expected. It just displays as text. If I just call the xquery directly (without using xsltforms), then all works correctly and the xml returned is shown as application/xml and displays as an xml tree. This is why Im interested in clarification on content-type handling and what happens during a submission, particularly with a replace="all" attribute. Thank you for your insight. Habs |