Skip to content

Cookbook: Using XSLT 2.0 stylesheets in post write hooks

Mark Jordan edited this page Dec 13, 2016 · 4 revisions

PHP's built-in XSLT processor only supports XSLT 1.0. If you want to use XSLT 2.0 to clean up your MODS, you can do so by using an external XSLT processor. Developers at Louisiana State University Library have contributed a post-write hook script that uses the Saxon XSLT processor to apply XSLT 2.0 stylesheets to MODS XML files. They have also provided a brief overview. The script itself is fairly simple, but it applies a wide range of cleanup stylesheets to the MODS files.

Cookbook table of contents

Clone this wiki locally