schxslt/redux-xslt1
最新稳定版本:v1.0.3
Composer 安装命令:
composer require schxslt/redux-xslt1
包简介
An implementation of an XSLT 1.0 ISO Schematron processor for the XSLT 1.0 query language binding
关键字:
README 文档
README
A feature complete implementation of an XSLT 1.0 ISO Schematron processor for the XSLT 1.0 query language binding.
SchXslt Redux XSLT1 is copyright (c) by David Maus and released under the terms of the MIT license.
About
This is a trimmed down version of the XSLT 1.0 processor of SchXslt. The processor is implemend as a series of XSLT transformation that transpile a ISO Schematron schema to an XSLT validation stylesheet. The validation stylesheet creates a SVRL report when applied to a document instance.
Transpiling a schema is done in three steps.
The stylesheet 1-include.xsl assembles a complete schema by resolving
and internalizing external definitions. It acts on the sch:include and the sch:extends with a @href
attribute.
The stylesheet 2-expand.xsl expands (instantiates) abstract rules and abstract patterns.
The stylesheet 3-transpile.xsl transpiles the schema to the XSLT validation stylesheet.
SchXslt Redux XSLT1 is a strict implementation of ISO Schematron. If you switch from a different implementation such as SchXslt or the "Skeleton" your schema files might not work as expected.
Feel free to contact me if you need help getting your Schematron standard-compliant.
Limitations
SchXslt Redux XSLT1 comes with the following limitations.
Schematron variables scoped to a phase or pattern are promoted to global XSLT variables.
Schematron variables cannot be used in the rule context expression. XSLT 1.0 forbids the use of variable references in match patterns.
The URI of the primary document is neither reported in the svrl:active-pattern/@documents, nor in the
svrl:fired-rule/@document attribute. XSLT 1.0 does not provide a function to access the URI of a document..
Installation and Usage
The Github releases page provides a ZIP file with the processor stylesheets. Download and unzip the file in an appropriate location. Users of eXist and BaseX can download and import an EXPath package from the releases page, too.
Java users can use the artifact name.dmaus.schxslt.schxslt-redux-xslt1 from Maven Central.
PHP users can use the package schxslt/redux-xslt1 from Packagist. The package provides a
class SchXslt\Xslt1\Locator with a getStylesheets() method that returns an array with the paths to the
stylesheets.
Authors
David Maus <dmaus@dmaus.name>
schxslt/redux-xslt1 适用场景与选型建议
schxslt/redux-xslt1 是一款 基于 XSLT 开发的 Composer 扩展包,目前已累计 7 次下载、GitHub Stars 达 0, 最近一次更新时间为 2022 年 11 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「xml」 「validation」 「schematron」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 schxslt/redux-xslt1 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 schxslt/redux-xslt1 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 schxslt/redux-xslt1 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Load DOM document safety
Adds request-parameter validation to the SLIM 3.x PHP framework
Adds Schematron validation support to PHP's DOM extension
A jQuery augmented PHP library for creating and validating HTML forms
A Laravel validator for delimiter-separated list of emails.
Added a method to Laravel response for handling xml response and also converting Eloquent return to XML.
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 20
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-11-04