Definition at line 46 of file xslt_proc.c.
47{
48#ifdef USE_LIBXSLT
49
54 const char **params;
64
65 if (fcinfo->nargs == 3)
66 {
69 }
70 else
71 {
72
75 }
76
77
79
81 {
83 int reslen = 0;
84
85
89
92 "error parsing XML document");
93
94
98
101 "error parsing stylesheet as XML document");
102
103
104
105
106
110
113 "failed to parse stylesheet");
114
116
120
138
141 (
errmsg(
"could not set libxslt security preferences")));
142
145
148 "failed to apply stylesheet");
149
152
154 {
155
156
157
158
159 if (reslen == 0)
161 else
163 }
164 }
166 {
182
184
186 }
188
195
198
200
201
204
206#else
207
210 errmsg(
"xslt_process() is not available without libxslt")));
212#endif
213}
int errcode(int sqlerrcode)
#define ereport(elevel,...)
#define palloc_object(type)
#define PG_GETARG_TEXT_PP(n)
#define PG_RETURN_TEXT_P(x)
static Size VARSIZE_ANY_EXHDR(const void *PTR)
static char * VARDATA_ANY(const void *PTR)
text * cstring_to_text_with_len(const char *s, int len)
text * cstring_to_text(const char *s)
struct PgXmlErrorContext PgXmlErrorContext
void xml_ereport(PgXmlErrorContext *errcxt, int level, int sqlcode, const char *msg)
bool pg_xml_error_occurred(PgXmlErrorContext *errcxt)
void pg_xml_done(PgXmlErrorContext *errcxt, bool isError)
@ PG_XML_STRICTNESS_LEGACY
PgXmlErrorContext * pgxml_parser_init(PgXmlStrictness strictness)
References cstring_to_text(), cstring_to_text_with_len(), ereport, errcode(), errmsg, ERROR, fb(), palloc_object, PG_CATCH, PG_END_TRY, PG_GETARG_TEXT_PP, PG_RE_THROW, PG_RETURN_NULL, PG_RETURN_TEXT_P, PG_TRY, pg_xml_done(), pg_xml_error_occurred(), PG_XML_STRICTNESS_LEGACY, pgxml_parser_init(), result, VARDATA_ANY(), VARSIZE_ANY_EXHDR(), and xml_ereport().