Title: Message Title
|
|
|
REST API currently responds to requests for text/html, application/xml and application/json. The text/html output: * is very simple, does not correspond to any formal HTML standard * is not created systematically, only by concatenating strings * doesn't contain all the information returned by the other types, therefore it's nearly useless * is the only type which can be accessed via a web browser (this use case is useful for debugging) * accented characters are rendered incorrectly via a browser because no encoding is declared Therefore I suggest we change the text/html output in a similar way as we currently use in the OAI interface - if text/html is requested, we'll respond with the XML output (same when application/xml is requested) and provide a client-side XSLT stylesheet to render it into HTML: <?xml-stylesheet type="text/xsl" href="" /> Using a stylesheet will allow us to: * render any and all data provided by REST API * make it easier to produce valid HTML * make it possible to get the full XML response from a web browser for debugging purposes (instead of the hassle of using another user agent) * simplify the REST API code by getting rid of one of the output formats * make it possible to change the presentation without touching Java code
|
|
|
|
|
|
------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable
security intelligence. It gives you real-time visual feedback on key
security issues and trends. Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
_______________________________________________
Dspace-devel mailing list
Dspace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-devel