Fix contrib/xml2 so regression test still works when it's built without libxslt.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: d6a6f8c6be4b6d6a9e90e92d91a83225bfe8d29d
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2010-03-01T18:07:59Z
Releases: 9.0.0
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

PathChange+/−
contrib/xml2/expected/xml2_1.out added +109 −0
contrib/xml2/Makefile modified +2 −2
contrib/xml2/pgxml.sql.in modified +1 −10
contrib/xml2/xslt_proc.c modified +23 −1