alcamo / xsl
XSLT library mainly for creating human-readable output
0.8.5
2026-05-29 13:48 UTC
Requires
- php: 7.3 - 8.0
Requires (Dev)
- alcamo/cli: ^0.6
- alcamo/dom: 0.13 - 0.17
- phpunit/phpunit: ^9.5
- ramsey/uuid: ^4.2
- squizlabs/php_codesniffer: 3.*
This package is auto-updated.
Last update: 2026-05-29 13:49:02 UTC
README
On the one hand, this package supplies a command-line XSLT processor
in bin/apply-xsl. It supports some of the options of xsltproc and
offers additional features. The main advantages over xsltproc are:
- The syntax
apply-xsl <xslFilename> <xmlFilename>works as expected also when<xslFilename>contains itself a stylesheet processing instruction (for documentation purposes). - The sysntax
apply-xsl -o %s-result.xml foo.xsl bar.xml baz.xml qux.xmlcan be used to created in one runbar-result.xml,baz-result.xmlandqux-result.xml. - If is possible to use PHP functions in the XSL code.
See bin/apply-xsl --help for details.
XSL library
The xsl directory contains a library of XSL files with a number of
(mainly simple) multi-purpose templates.
In addition, it contains xsd.xsl and xsl.xsl which can be used to
generate HTML documentation from XSD and XSL files.