plxslt
XSLT procedural language for PostgreSQL
plxslt : XSLT procedural language for PostgreSQL
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 3110 | plxslt | plxslt | 0.20140221 |
LANG | PostgreSQL | C |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| --s-d-r | No | Yes | No | Yes | yes | no |
Packages
| Type | Repo | Version | PG Major Compatibility | Package Pattern | Dependencies |
|---|---|---|---|---|---|
| EXT | PGDG | 0.20140221 |
18 17 16 15 14 | plxslt |
- |
| RPM | PGDG | 0.20140221 |
18 17 16 15 14 | plxslt_$v |
- |
| DEB | PIGSTY | 0.20140221 |
18 17 16 15 14 | postgresql-$v-plxslt |
- |
| Linux / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | PGDG 0.20140221 | PGDG 0.20140221 | PGDG 0.20140221 | PGDG 0.20140221 | PGDG 0.20140221 |
| el8.aarch64 | PGDG 0.20140221 | PGDG 0.20140221 | PGDG 0.20140221 | PGDG 0.20140221 | PGDG 0.20140221 |
| el9.x86_64 | PGDG 0.20140221 | PGDG 0.20140221 | PGDG 0.20140221 | PGDG 0.20140221 | PGDG 0.20140221 |
| el9.aarch64 | PGDG 0.20140221 | PGDG 0.20140221 | PGDG 0.20140221 | PGDG 0.20140221 | PGDG 0.20140221 |
| el10.x86_64 | PGDG 0.20140221 | PGDG 0.20140221 | PGDG 0.20140221 | PGDG 0.20140221 | PGDG 0.20140221 |
| el10.aarch64 | PGDG 0.20140221 | PGDG 0.20140221 | PGDG 0.20140221 | PGDG 0.20140221 | PGDG 0.20140221 |
| d12.x86_64 | PIGSTY 0.20140221 | PIGSTY 0.20140221 | PIGSTY 0.20140221 | PIGSTY 0.20140221 | PIGSTY 0.20140221 |
| d12.aarch64 | PIGSTY 0.20140221 | PIGSTY 0.20140221 | PIGSTY 0.20140221 | PIGSTY 0.20140221 | PIGSTY 0.20140221 |
| d13.x86_64 | PIGSTY 0.20140221 | PIGSTY 0.20140221 | PIGSTY 0.20140221 | PIGSTY 0.20140221 | PIGSTY 0.20140221 |
| d13.aarch64 | PIGSTY 0.20140221 | PIGSTY 0.20140221 | PIGSTY 0.20140221 | PIGSTY 0.20140221 | PIGSTY 0.20140221 |
| u22.x86_64 | PIGSTY 0.20140221 | PIGSTY 0.20140221 | PIGSTY 0.20140221 | PIGSTY 0.20140221 | PIGSTY 0.20140221 |
| u22.aarch64 | PIGSTY 0.20140221 | PIGSTY 0.20140221 | PIGSTY 0.20140221 | PIGSTY 0.20140221 | PIGSTY 0.20140221 |
| u24.x86_64 | PIGSTY 0.20140221 | PIGSTY 0.20140221 | PIGSTY 0.20140221 | PIGSTY 0.20140221 | PIGSTY 0.20140221 |
| u24.aarch64 | PIGSTY 0.20140221 | PIGSTY 0.20140221 | PIGSTY 0.20140221 | PIGSTY 0.20140221 | PIGSTY 0.20140221 |
| u26.x86_64 | PIGSTY 0.20140221 | PIGSTY 0.20140221 | PIGSTY 0.20140221 | PIGSTY 0.20140221 | PIGSTY 0.20140221 |
| u26.aarch64 | PIGSTY 0.20140221 | PIGSTY 0.20140221 | PIGSTY 0.20140221 | PIGSTY 0.20140221 | PIGSTY 0.20140221 |
Source
github.com/petere/plxslt
plxslt-0.20140221.tar.gz
Install
Make sure PGDG repo available:
Install this extension with pig:
Create this extension with:
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)