Skip to content

XSL resources for transforming XML exported from OJS 2 to look like XML exported from OJS 3

Notifications You must be signed in to change notification settings

quoideneuf/ojs-2xto3x-xwalk

Repository files navigation

Usage:

git clone https://github.com/quoideneuf/ojs-2xto3x-xwalk
cd ojs-2xto3x-xwalk
composer update
php transform.php --xml 2xports/articles.xml --out 3xports/testing.xml --xsl transform.xsl --test

Or, if you don't use composer, you can just run a transform

git clone https://github.com/quoideneuf/ojs-2xto3x-xwalk
cd ojs-2xto3x-xwalk
php transform.php --xml 2xports/articles.xml --out 3xports/testing.xml --xsl transform.xsl

To provide default values to the stylesheet, use the --article-defaults flag:

php transform.php --xml 2xports/articles.xml --out 3xports/testing.xml --xsl transform.xsl --article-defaults article-defaults.txt

Depending on your situation, it may be necessary to provide default values in order for the output to be importable. See the example defaults value.

You can transform whole directories:

php transform.php --xml raw-data-dir --out converted-data-dir --xsl transform.xsl

About

XSL resources for transforming XML exported from OJS 2 to look like XML exported from OJS 3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages