PG 扩展目录扩展详情plxslt操作查看编辑历史编辑此页添加子页面提交文档问题提交项目问题plxsltXSLT 存储过程语言仓库petere/plxslthttps://github.com/petere/plxslt源码plxslt-0.20140221.tar.gzplxslt-0.20140221.tar.gz概览扩展包名版本分类许可证语言plxslt0.20140221LANGPostgreSQLCID扩展名BinLibLoadCreateTrustReloc模式3110plxslt否是否是否是-相关扩展pgrdf sparql xml2 omni_xml pljava plsh rdf_fdw plr plperl pltcl版本类型仓库版本PG 大版本包名依赖EXTPGDG0.201402211817161514plxslt-RPMPGDG0.201402211817161514plxslt_$v-DEBPIGSTY0.201402211817161514postgresql-$v-plxslt-OS / PGPG19PG18PG17PG16PG15el8.x86_64N/APGDG 0.20140221el8.x86_64.pg18 : plxslt_18×plxslt_18-0.20140221-7PGDG.rhel8.10.x86_64.rpmPGDG · 0.20140221 · 15.7KiBplxslt_18-0.20140221-1PGDG.rhel8.x86_64.rpmPGDG · 0.20140221 · 14.7KiBPGDG 0.20140221el8.x86_64.pg17 : plxslt_17×plxslt_17-0.20140221-7PGDG.rhel8.10.x86_64.rpmPGDG · 0.20140221 · 15.7KiBplxslt_17-0.20140221-1PGDG.rhel8.x86_64.rpmPGDG · 0.20140221 · 14.7KiBPGDG 0.20140221el8.x86_64.pg16 : plxslt_16×plxslt_16-0.20140221-7PGDG.rhel8.10.x86_64.rpmPGDG · 0.20140221 · 15.7KiBplxslt_16-0.20140221-1PGDG.rhel8.x86_64.rpmPGDG · 0.20140221 · 14.7KiBPGDG 0.20140221el8.x86_64.pg15 : plxslt_15×plxslt_15-0.20140221-7PGDG.rhel8.10.x86_64.rpmPGDG · 0.20140221 · 15.7KiBplxslt_15-0.20140221-1PGDG.rhel8.x86_64.rpmPGDG · 0.20140221 · 14.7KiBel8.aarch64N/APGDG 0.20140221el8.aarch64.pg18 : plxslt_18×plxslt_18-0.20140221-7PGDG.rhel8.10.aarch64.rpmPGDG · 0.20140221 · 15.8KiBplxslt_18-0.20140221-1PGDG.rhel8.aarch64.rpmPGDG · 0.20140221 · 14.7KiBPGDG 0.20140221el8.aarch64.pg17 : plxslt_17×plxslt_17-0.20140221-7PGDG.rhel8.10.aarch64.rpmPGDG · 0.20140221 · 15.8KiBplxslt_17-0.20140221-1PGDG.rhel8.aarch64.rpmPGDG · 0.20140221 · 14.7KiBPGDG 0.20140221el8.aarch64.pg16 : plxslt_16×plxslt_16-0.20140221-7PGDG.rhel8.10.aarch64.rpmPGDG · 0.20140221 · 15.8KiBplxslt_16-0.20140221-1PGDG.rhel8.aarch64.rpmPGDG · 0.20140221 · 14.7KiBPGDG 0.20140221el8.aarch64.pg15 : plxslt_15×plxslt_15-0.20140221-7PGDG.rhel8.10.aarch64.rpmPGDG · 0.20140221 · 15.8KiBplxslt_15-0.20140221-1PGDG.rhel8.aarch64.rpmPGDG · 0.20140221 · 14.7KiBel9.x86_64PGDG 0.20140221el9.x86_64.pg19 : plxslt_19×plxslt_19-0.20140221-7PGDG.rhel9.9.x86_64.rpmPGDG · 0.20140221 · 16.2KiBPGDG 0.20140221el9.x86_64.pg18 : plxslt_18×plxslt_18-0.20140221-7PGDG.rhel9.9.x86_64.rpmPGDG · 0.20140221 · 16.2KiBPGDG 0.20140221el9.x86_64.pg17 : plxslt_17×plxslt_17-0.20140221-7PGDG.rhel9.9.x86_64.rpmPGDG · 0.20140221 · 16.2KiBPGDG 0.20140221el9.x86_64.pg16 : plxslt_16×plxslt_16-0.20140221-7PGDG.rhel9.9.x86_64.rpmPGDG · 0.20140221 · 16.2KiBPGDG 0.20140221el9.x86_64.pg15 : plxslt_15×plxslt_15-0.20140221-7PGDG.rhel9.9.x86_64.rpmPGDG · 0.20140221 · 16.2KiBel9.aarch64PGDG 0.20140221el9.aarch64.pg19 : plxslt_19×plxslt_19-0.20140221-7PGDG.rhel9.9.aarch64.rpmPGDG · 0.20140221 · 16.0KiBPGDG 0.20140221el9.aarch64.pg18 : plxslt_18×plxslt_18-0.20140221-7PGDG.rhel9.9.aarch64.rpmPGDG · 0.20140221 · 16.0KiBPGDG 0.20140221el9.aarch64.pg17 : plxslt_17×plxslt_17-0.20140221-7PGDG.rhel9.9.aarch64.rpmPGDG · 0.20140221 · 16.1KiBPGDG 0.20140221el9.aarch64.pg16 : plxslt_16×plxslt_16-0.20140221-7PGDG.rhel9.9.aarch64.rpmPGDG · 0.20140221 · 16.0KiBPGDG 0.20140221el9.aarch64.pg15 : plxslt_15×plxslt_15-0.20140221-7PGDG.rhel9.9.aarch64.rpmPGDG · 0.20140221 · 16.1KiBel10.x86_64PGDG 0.20140221el10.x86_64.pg19 : plxslt_19×plxslt_19-0.20140221-7PGDG.rhel10.3.x86_64.rpmPGDG · 0.20140221 · 16.3KiBPGDG 0.20140221el10.x86_64.pg18 : plxslt_18×plxslt_18-0.20140221-7PGDG.rhel10.3.x86_64.rpmPGDG · 0.20140221 · 16.3KiBPGDG 0.20140221el10.x86_64.pg17 : plxslt_17×plxslt_17-0.20140221-7PGDG.rhel10.3.x86_64.rpmPGDG · 0.20140221 · 16.3KiBPGDG 0.20140221el10.x86_64.pg16 : plxslt_16×plxslt_16-0.20140221-7PGDG.rhel10.3.x86_64.rpmPGDG · 0.20140221 · 16.3KiBPGDG 0.20140221el10.x86_64.pg15 : plxslt_15×plxslt_15-0.20140221-7PGDG.rhel10.3.x86_64.rpmPGDG · 0.20140221 · 16.3KiBel10.aarch64PGDG 0.20140221el10.aarch64.pg19 : plxslt_19×plxslt_19-0.20140221-7PGDG.rhel10.3.aarch64.rpmPGDG · 0.20140221 · 16.3KiBPGDG 0.20140221el10.aarch64.pg18 : plxslt_18×plxslt_18-0.20140221-7PGDG.rhel10.3.aarch64.rpmPGDG · 0.20140221 · 16.3KiBplxslt_18-0.20140221-7PGDG.rhel10.2.aarch64.rpmPGDG · 0.20140221 · 16.1KiBplxslt_18-0.20140221-3PGDG.rhel10.2.aarch64.rpmPGDG · 0.20140221 · 15.2KiBplxslt_18-0.20140221-1PGDG.rhel10.aarch64.rpmPGDG · 0.20140221 · 15.2KiBPGDG 0.20140221el10.aarch64.pg17 : plxslt_17×plxslt_17-0.20140221-7PGDG.rhel10.3.aarch64.rpmPGDG · 0.20140221 · 16.3KiBplxslt_17-0.20140221-7PGDG.rhel10.2.aarch64.rpmPGDG · 0.20140221 · 16.1KiBplxslt_17-0.20140221-3PGDG.rhel10.2.aarch64.rpmPGDG · 0.20140221 · 15.2KiBplxslt_17-0.20140221-1PGDG.rhel10.aarch64.rpmPGDG · 0.20140221 · 15.2KiBPGDG 0.20140221el10.aarch64.pg16 : plxslt_16×plxslt_16-0.20140221-7PGDG.rhel10.3.aarch64.rpmPGDG · 0.20140221 · 16.3KiBplxslt_16-0.20140221-7PGDG.rhel10.2.aarch64.rpmPGDG · 0.20140221 · 16.1KiBplxslt_16-0.20140221-3PGDG.rhel10.2.aarch64.rpmPGDG · 0.20140221 · 15.2KiBplxslt_16-0.20140221-1PGDG.rhel10.aarch64.rpmPGDG · 0.20140221 · 15.2KiBPGDG 0.20140221el10.aarch64.pg15 : plxslt_15×plxslt_15-0.20140221-7PGDG.rhel10.3.aarch64.rpmPGDG · 0.20140221 · 16.3KiBplxslt_15-0.20140221-7PGDG.rhel10.2.aarch64.rpmPGDG · 0.20140221 · 16.1KiBplxslt_15-0.20140221-3PGDG.rhel10.2.aarch64.rpmPGDG · 0.20140221 · 15.2KiBplxslt_15-0.20140221-1PGDG.rhel10.aarch64.rpmPGDG · 0.20140221 · 15.2KiBd12.x86_64PIGSTY 0.20140221d12.x86_64.pg19 : postgresql-19-plxslt×postgresql-19-plxslt_0.20140221-1PGSTY~bookworm_amd64.debPIGSTY · 0.20140221 · 13.7KiBPIGSTY 0.20140221d12.x86_64.pg18 : postgresql-18-plxslt×postgresql-18-plxslt_0.20140221-1PGSTY~bookworm_amd64.debPIGSTY · 0.20140221 · 13.7KiBPIGSTY 0.20140221d12.x86_64.pg17 : postgresql-17-plxslt×postgresql-17-plxslt_0.20140221-1PGSTY~bookworm_amd64.debPIGSTY · 0.20140221 · 13.7KiBPIGSTY 0.20140221d12.x86_64.pg16 : postgresql-16-plxslt×postgresql-16-plxslt_0.20140221-1PGSTY~bookworm_amd64.debPIGSTY · 0.20140221 · 13.7KiBPIGSTY 0.20140221d12.x86_64.pg15 : postgresql-15-plxslt×postgresql-15-plxslt_0.20140221-1PGSTY~bookworm_amd64.debPIGSTY · 0.20140221 · 13.7KiBd12.aarch64PIGSTY 0.20140221d12.aarch64.pg19 : postgresql-19-plxslt×postgresql-19-plxslt_0.20140221-1PGSTY~bookworm_arm64.debPIGSTY · 0.20140221 · 13.8KiBPIGSTY 0.20140221d12.aarch64.pg18 : postgresql-18-plxslt×postgresql-18-plxslt_0.20140221-1PGSTY~bookworm_arm64.debPIGSTY · 0.20140221 · 13.8KiBPIGSTY 0.20140221d12.aarch64.pg17 : postgresql-17-plxslt×postgresql-17-plxslt_0.20140221-1PGSTY~bookworm_arm64.debPIGSTY · 0.20140221 · 13.7KiBPIGSTY 0.20140221d12.aarch64.pg16 : postgresql-16-plxslt×postgresql-16-plxslt_0.20140221-1PGSTY~bookworm_arm64.debPIGSTY · 0.20140221 · 13.7KiBPIGSTY 0.20140221d12.aarch64.pg15 : postgresql-15-plxslt×postgresql-15-plxslt_0.20140221-1PGSTY~bookworm_arm64.debPIGSTY · 0.20140221 · 13.7KiBd13.x86_64PIGSTY 0.20140221d13.x86_64.pg19 : postgresql-19-plxslt×postgresql-19-plxslt_0.20140221-1PGSTY~trixie_amd64.debPIGSTY · 0.20140221 · 13.7KiBPIGSTY 0.20140221d13.x86_64.pg18 : postgresql-18-plxslt×postgresql-18-plxslt_0.20140221-1PGSTY~trixie_amd64.debPIGSTY · 0.20140221 · 13.7KiBPIGSTY 0.20140221d13.x86_64.pg17 : postgresql-17-plxslt×postgresql-17-plxslt_0.20140221-1PGSTY~trixie_amd64.debPIGSTY · 0.20140221 · 13.7KiBPIGSTY 0.20140221d13.x86_64.pg16 : postgresql-16-plxslt×postgresql-16-plxslt_0.20140221-1PGSTY~trixie_amd64.debPIGSTY · 0.20140221 · 13.7KiBPIGSTY 0.20140221d13.x86_64.pg15 : postgresql-15-plxslt×postgresql-15-plxslt_0.20140221-1PGSTY~trixie_amd64.debPIGSTY · 0.20140221 · 13.7KiBd13.aarch64PIGSTY 0.20140221d13.aarch64.pg19 : postgresql-19-plxslt×postgresql-19-plxslt_0.20140221-1PGSTY~trixie_arm64.debPIGSTY · 0.20140221 · 13.8KiBPIGSTY 0.20140221d13.aarch64.pg18 : postgresql-18-plxslt×postgresql-18-plxslt_0.20140221-1PGSTY~trixie_arm64.debPIGSTY · 0.20140221 · 13.8KiBPIGSTY 0.20140221d13.aarch64.pg17 : postgresql-17-plxslt×postgresql-17-plxslt_0.20140221-1PGSTY~trixie_arm64.debPIGSTY · 0.20140221 · 13.7KiBPIGSTY 0.20140221d13.aarch64.pg16 : postgresql-16-plxslt×postgresql-16-plxslt_0.20140221-1PGSTY~trixie_arm64.debPIGSTY · 0.20140221 · 13.7KiBPIGSTY 0.20140221d13.aarch64.pg15 : postgresql-15-plxslt×postgresql-15-plxslt_0.20140221-1PGSTY~trixie_arm64.debPIGSTY · 0.20140221 · 13.7KiBu22.x86_64PIGSTY 0.20140221u22.x86_64.pg19 : postgresql-19-plxslt×postgresql-19-plxslt_0.20140221-1PGSTY~jammy_amd64.debPIGSTY · 0.20140221 · 14.3KiBPIGSTY 0.20140221u22.x86_64.pg18 : postgresql-18-plxslt×postgresql-18-plxslt_0.20140221-1PGSTY~jammy_amd64.debPIGSTY · 0.20140221 · 14.2KiBPIGSTY 0.20140221u22.x86_64.pg17 : postgresql-17-plxslt×postgresql-17-plxslt_0.20140221-1PGSTY~jammy_amd64.debPIGSTY · 0.20140221 · 15.5KiBPIGSTY 0.20140221u22.x86_64.pg16 : postgresql-16-plxslt×postgresql-16-plxslt_0.20140221-1PGSTY~jammy_amd64.debPIGSTY · 0.20140221 · 15.5KiBPIGSTY 0.20140221u22.x86_64.pg15 : postgresql-15-plxslt×postgresql-15-plxslt_0.20140221-1PGSTY~jammy_amd64.debPIGSTY · 0.20140221 · 15.5KiBu22.aarch64PIGSTY 0.20140221u22.aarch64.pg19 : postgresql-19-plxslt×postgresql-19-plxslt_0.20140221-1PGSTY~jammy_arm64.debPIGSTY · 0.20140221 · 14.6KiBPIGSTY 0.20140221u22.aarch64.pg18 : postgresql-18-plxslt×postgresql-18-plxslt_0.20140221-1PGSTY~jammy_arm64.debPIGSTY · 0.20140221 · 14.5KiBPIGSTY 0.20140221u22.aarch64.pg17 : postgresql-17-plxslt×postgresql-17-plxslt_0.20140221-1PGSTY~jammy_arm64.debPIGSTY · 0.20140221 · 15.8KiBPIGSTY 0.20140221u22.aarch64.pg16 : postgresql-16-plxslt×postgresql-16-plxslt_0.20140221-1PGSTY~jammy_arm64.debPIGSTY · 0.20140221 · 15.8KiBPIGSTY 0.20140221u22.aarch64.pg15 : postgresql-15-plxslt×postgresql-15-plxslt_0.20140221-1PGSTY~jammy_arm64.debPIGSTY · 0.20140221 · 15.8KiBu24.x86_64PIGSTY 0.20140221u24.x86_64.pg19 : postgresql-19-plxslt×postgresql-19-plxslt_0.20140221-1PGSTY~noble_amd64.debPIGSTY · 0.20140221 · 14.4KiBPIGSTY 0.20140221u24.x86_64.pg18 : postgresql-18-plxslt×postgresql-18-plxslt_0.20140221-1PGSTY~noble_amd64.debPIGSTY · 0.20140221 · 14.4KiBPIGSTY 0.20140221u24.x86_64.pg17 : postgresql-17-plxslt×postgresql-17-plxslt_0.20140221-1PGSTY~noble_amd64.debPIGSTY · 0.20140221 · 14.4KiBPIGSTY 0.20140221u24.x86_64.pg16 : postgresql-16-plxslt×postgresql-16-plxslt_0.20140221-1PGSTY~noble_amd64.debPIGSTY · 0.20140221 · 14.4KiBPIGSTY 0.20140221u24.x86_64.pg15 : postgresql-15-plxslt×postgresql-15-plxslt_0.20140221-1PGSTY~noble_amd64.debPIGSTY · 0.20140221 · 14.4KiBu24.aarch64PIGSTY 0.20140221u24.aarch64.pg19 : postgresql-19-plxslt×postgresql-19-plxslt_0.20140221-1PGSTY~noble_arm64.debPIGSTY · 0.20140221 · 14.3KiBPIGSTY 0.20140221u24.aarch64.pg18 : postgresql-18-plxslt×postgresql-18-plxslt_0.20140221-1PGSTY~noble_arm64.debPIGSTY · 0.20140221 · 14.3KiBPIGSTY 0.20140221u24.aarch64.pg17 : postgresql-17-plxslt×postgresql-17-plxslt_0.20140221-1PGSTY~noble_arm64.debPIGSTY · 0.20140221 · 14.3KiBPIGSTY 0.20140221u24.aarch64.pg16 : postgresql-16-plxslt×postgresql-16-plxslt_0.20140221-1PGSTY~noble_arm64.debPIGSTY · 0.20140221 · 14.3KiBPIGSTY 0.20140221u24.aarch64.pg15 : postgresql-15-plxslt×postgresql-15-plxslt_0.20140221-1PGSTY~noble_arm64.debPIGSTY · 0.20140221 · 14.3KiBu26.x86_64PIGSTY 0.20140221u26.x86_64.pg19 : postgresql-19-plxslt×postgresql-19-plxslt_0.20140221-1PGSTY~resolute_amd64.debPIGSTY · 0.20140221 · 14.5KiBPIGSTY 0.20140221u26.x86_64.pg18 : postgresql-18-plxslt×postgresql-18-plxslt_0.20140221-1PGSTY~resolute_amd64.debPIGSTY · 0.20140221 · 14.5KiBPIGSTY 0.20140221u26.x86_64.pg17 : postgresql-17-plxslt×postgresql-17-plxslt_0.20140221-1PGSTY~resolute_amd64.debPIGSTY · 0.20140221 · 14.5KiBPIGSTY 0.20140221u26.x86_64.pg16 : postgresql-16-plxslt×postgresql-16-plxslt_0.20140221-1PGSTY~resolute_amd64.debPIGSTY · 0.20140221 · 14.5KiBPIGSTY 0.20140221u26.x86_64.pg15 : postgresql-15-plxslt×postgresql-15-plxslt_0.20140221-1PGSTY~resolute_amd64.debPIGSTY · 0.20140221 · 14.5KiBu26.aarch64PIGSTY 0.20140221u26.aarch64.pg19 : postgresql-19-plxslt×postgresql-19-plxslt_0.20140221-1PGSTY~resolute_arm64.debPIGSTY · 0.20140221 · 14.5KiBPIGSTY 0.20140221u26.aarch64.pg18 : postgresql-18-plxslt×postgresql-18-plxslt_0.20140221-1PGSTY~resolute_arm64.debPIGSTY · 0.20140221 · 14.5KiBPIGSTY 0.20140221u26.aarch64.pg17 : postgresql-17-plxslt×postgresql-17-plxslt_0.20140221-1PGSTY~resolute_arm64.debPIGSTY · 0.20140221 · 14.4KiBPIGSTY 0.20140221u26.aarch64.pg16 : postgresql-16-plxslt×postgresql-16-plxslt_0.20140221-1PGSTY~resolute_arm64.debPIGSTY · 0.20140221 · 14.5KiBPIGSTY 0.20140221u26.aarch64.pg15 : postgresql-15-plxslt×postgresql-15-plxslt_0.20140221-1PGSTY~resolute_arm64.debPIGSTY · 0.20140221 · 14.5KiB构建您可以使用 pig build 命令构建 plxslt 扩展的 DEB 包: pig build pkg plxslt # 构建 DEB 包安装您可以直接安装 plxslt 扩展包的预置二进制包,首先确保 PGDG 和 PIGSTY 仓库已经添加并启用: pig repo add pgsql -u # 添加仓库并更新缓存使用 pig 或者是 apt/yum/dnf 安装扩展:安装 pig install plxslt; # 当前活跃 PG 版本安装pig pig ext install -y plxslt -v 19 # PG 19 pig ext install -y plxslt -v 18 # PG 18 pig ext install -y plxslt -v 17 # PG 17 pig ext install -y plxslt -v 16 # PG 16 pig ext install -y plxslt -v 15 # PG 15dnf dnf install -y plxslt_19 # PG 19 dnf install -y plxslt_18 # PG 18 dnf install -y plxslt_17 # PG 17 dnf install -y plxslt_16 # PG 16 dnf install -y plxslt_15 # PG 15apt apt install -y postgresql-19-plxslt # PG 19 apt install -y postgresql-18-plxslt # PG 18 apt install -y postgresql-17-plxslt # PG 17 apt install -y postgresql-16-plxslt # PG 16 apt install -y postgresql-15-plxslt # PG 15创建扩展: CREATE EXTENSION plxslt;用法plxslt: PostgreSQL 的 XSLT 过程语言plxslt 允许将 PostgreSQL 函数编写为 XSLT 样式表,用于转换 XML 数据。 CREATE EXTENSION plxslt;创建 XSLT 函数函数体是一个 XSLT 样式表。第一个参数必须是 xml 类型,用于接收输入文档: CREATE FUNCTION extract_title(xml) RETURNS xml AS $$ <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <xsl:value-of select="//title"/> </xsl:template> </xsl:stylesheet> $$ LANGUAGE xslt; SELECT extract_title('<doc><title>Hello World</title></doc>'::xml);返回类型返回类型必须与样式表的输出方法匹配:输出方法返回类型xmlxmltexttext 或 varcharhtmltext 或 varchar传递参数第一个 xml 参数之后的附加函数参数将作为 XSL 样式表参数传递: CREATE FUNCTION transform_with_param(xml, text) RETURNS xml AS $$ <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:param name="arg2"/> <xsl:template match="/"> <result> <xsl:value-of select="$arg2"/> </result> </xsl:template> </xsl:stylesheet> $$ LANGUAGE xslt;限制第一个参数必须是 xml 类型不支持触发器仅支持 XSLT 1.0 转换(通过 libxslt)这个页面对您有帮助吗? 有帮助 没帮助感谢反馈,我们会据此改进本页内容。遇到什么问题?(可选) 缺少必要信息 内容错误或已过时 操作步骤没有生效 内容难以理解修改反馈