RefLib

Reference library for AI

Back

postgresql_16:9.6.50.4 XSLT Functions

PostgreSQL 16 > Appendixes > Additional Supplied Modules and Extensions > xml2 — XPath querying and XSLT functionality > XSLT Functions

The following functions are available if libxslt is installed:

xslt_process

xslt_process(text document, text stylesheet, text paramlist) returns text

This function applies the XSL stylesheet to the document and returns the transformed result. The paramlist is a list of parameter assignments to be used in the transformation, specified in the form a=1,b=2. Note that the parameter parsing is very simple-minded: parameter values cannot contain commas!

There is also a two-parameter version of xslt_process which does not pass any parameters to the transformation.

Back