plxslt
XSLT procedural language for PostgreSQL
Repository
petere/plxslt
https://github.com/petere/plxslt
Source
plxslt-0.20140221.tar.gz
plxslt-0.20140221.tar.gz
Overview
| Package | Version | Category | License | Language |
|---|---|---|---|---|
plxslt | 0.20140221 | LANG | PostgreSQL | C |
| ID | Extension | Bin | Lib | Load | Create | Trust | Reloc | Schema |
|---|---|---|---|---|---|---|---|---|
| 3110 | plxslt | No | Yes | No | Yes | No | Yes | - |
Version
| Type | Repo | Version | PG Ver | Package | Deps |
|---|---|---|---|---|---|
| EXT | PGDG | 0.20140221 | 1817161514 | plxslt | - |
| RPM | PGDG | 0.20140221 | 1817161514 | plxslt_$v | - |
| DEB | PIGSTY | 0.20140221 | 1817161514 | postgresql-$v-plxslt | - |
Build
You can build the DEB packages for plxslt using pig build:
Install
You can install plxslt directly. First, make sure the PGDG repository is added and enabled:
Install the extension using pig or apt/yum/dnf:
Install
pig
dnf
apt
Create Extension:
Usage
plxslt enables writing PostgreSQL functions as XSLT stylesheets for transforming XML data.
Create XSLT Functions
The function body is an XSLT stylesheet. The first parameter must be of type xml and receives the input document:
Return Types
The return type must match the stylesheet’s output method:
| Output Method | Return Type |
|---|---|
xml | xml |
text | text or varchar |
html | text or varchar |
Passing Parameters
Additional function parameters beyond the first xml parameter are passed as XSL stylesheet parameters:
Limitations
- First parameter must be
xmltype - Triggers are not supported
- Only XSLT 1.0 transformations are supported (via libxslt)
Was this page helpful?
Thanks—your feedback helps us improve this page.
What got in the way? (optional)