Fix contrib/xml2 so regression test still works when it's built without libxslt.
Tom Lane <tgl@sss.pgh.pa.us>
Fix contrib/xml2 so regression test still works when it's built without libxslt. This involves modifying the module to have a stable ABI, that is, the xslt_process() function still exists even without libxslt. It throws a runtime error if called, but doesn't prevent executing the CREATE FUNCTION call. This is a good thing anyway to simplify cross-version upgrades.
Files
| Path | Change | +/− |
|---|---|---|
| contrib/xml2/expected/xml2_1.out | added | +107 −0 |
| contrib/xml2/Makefile | modified | +12 −5 |
| contrib/xml2/pgxml.sql.in | modified | +0 −9 |
| contrib/xml2/xslt_proc.c | modified | +21 −2 |