summaryrefslogtreecommitdiff
path: root/example/common.xsl
AgeCommit message (Collapse)Author
2019-02-20Allow requests without queriesdefanor
Apply a stylesheet to <pgx:no_query /> in that case. This is slightly out of the project scope, but handy in some cases (helps to avoid dummy queries or additional software), and done with a single line change.
2019-02-16Handle DB connection failuresdefanor
Provide an error message on those. Also add an error message from libpq when it's available.
2019-02-04Remove the postgresql-simple dependencydefanor
It pulls Aeson, which is a rather large dependency (as does wai-extra, but it's to be removed too), and its functionality was barely used anyway.
2019-02-03Replace HXT with libxmldefanor
The primary issue is that str:encode-uri function from EXSLT is not available with HXT (but available with libxml's friends: libxslt and libexslt, which are generally more complete). This function is important for HTML documents. Another reason is libxml being better documented and somewhat easier to work with. Yet another reason to switch is the intent to avoid dependencies that reimplement common functionality, and/or normally get statically linked.
2019-01-15Improve error messagesdefanor
- ResultError gets handled now - No plain textual messages anymore - An XML namespace is set, though an experimental one Maybe the serialization should be changed to simplify templating. It would also be nice to specify the schema (e.g., with relax ng), host it, and use its URI for the namespace.
2018-12-30Initial commitdefanor
The initial working version, an example, and brief description are included. Error handling and reporting, perhaps HTTP headers, CLI arguments, and documentation can still be improved, but that's for future commits.