Definition at line 46 of file xslt_proc.c.
47{
48#ifdef USE_LIBXSLT
49
54 const char **params;
63
64 if (fcinfo->nargs == 3)
65 {
68 }
69 else
70 {
71
74 }
75
76
78
80 {
83 int reslen = 0;
84
85
89
92 "error parsing XML document");
93
94
98
101 "error parsing stylesheet as XML document");
102
103
105
108 "failed to parse stylesheet");
109
111
115
133
136 (
errmsg(
"could not set libxslt security preferences")));
137
140
143 "failed to apply stylesheet");
144
147
149 {
150
151
152
153
154 if (reslen == 0)
156 else
158 }
159 }
161 {
175
177
179 }
181
188
191
193
194
197
199#else
200
203 errmsg(
"xslt_process() is not available without libxslt")));
205#endif
206}
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().