Hi all,
Perhaps a better posted on the eXist site, but I suspect the issue has been encountered here. Using url-generator to access the eXist REST interface, the content-type of the returned data is "text/html" rather than text/xml. I can use <force-content-type> , but I wonder if tidy is getting called anyway. Has anyone run into this problem? Have I mis-configured eXist? Thanks for any tips, Hank Ratzesberger Goleta,CA -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Well, I conclude that eXist will return "content-type: text/html" under various circumstances. (It may be that you need an xml processor instruction in your document. It might be a help if url-generator's request-headers could be configured, I didn't see immediately how.) In any case, it definitely will not call htmlTidy if the content-type is text/xml and force-content-type is true. However, I should be using the xforms-submission processor to get XML from a REST interface, so I'm off to update my code.. Cheers, Hank Goleta, CA ----- Original Message ----- From: "Hank Ratzesberger" <[hidden email]> > Hi all, > > Perhaps a better posted on the eXist site, but I suspect > the issue has been encountered here. > > Using url-generator to access the eXist REST interface, > the content-type of the returned data is "text/html" > rather than text/xml. I can use <force-content-type> , > but I wonder if tidy is getting called anyway. > > Has anyone run into this problem? Have I mis-configured > eXist? > > Thanks for any tips, > Hank Ratzesberger > > Goleta,CA -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
In reply to this post by Hank Ratzesberger
Hank,
I don't know why eXist returns text/html in your case. I have not experienced this. If you use force-content-type with an XML content type, then the XML parser should be used. -Erik Hank Ratzesberger wrote: > Hi all, > > Perhaps a better posted on the eXist site, but I suspect > the issue has been encountered here. > > Using url-generator to access the eXist REST interface, the content-type > of the returned data is "text/html" rather than text/xml. I can use > <force-content-type> , > but I wonder if tidy is getting called anyway. > > Has anyone run into this problem? Have I mis-configured > eXist? > > Thanks for any tips, > Hank Ratzesberger > > Goleta,CA -- Orbeon - XForms Everywhere: http://www.orbeon.com/blog/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |