Skip to content


Subversion checkout URL

You can clone with
Download ZIP
A PubMed Central to MediaWiki converter
XSLT Shell
Latest commit 733e3d9 @Klortho Klortho Update README


jats-to-mediawiki.xsl transforms XML files written in the NLM/NISO Journal Archiving Tag Suite XML into MediaWiki XML. It is a part of the Encyclopedia of Original Research (EOR), and we expect it to be tightly integrated with the open-access-media-importer.

Set up your environment

The following command should work in a bash shell.

# Clone this repository
git clone
cd JATS-to-Mediawiki

# Get the JATS dtd
mkdir dtd
cd dtd
unzip *.zip
cd ..

# Make sure you have xsltproc
which xsltproc   # should return with the location of your xsltproc command

# Set up XML catalog file
export XML_CATALOG_FILES=`pwd`/dtd/catalog-test-jats-v1.xml

Convert an article

The following are manual instructions for converting a single article, given its DOI. It would be fairly easy to script, if you want.

First, you need to find the PMCID for the article. If you have the DOI (for example, 10.1371/journal.pone.0010676) the easiest way to do this is with the PMC ID converter API. Point your browser at, and make a note of the pmcid value (in this example, PMC2873961).

Next, find the location of the gzip archive file for this article, using the PMC OA web service. Point your browser at, and look for the link with format tgz.

Download that gzip archive with, for example (note the single quotes around the URL):

wget ''

Unzip that, and change into that directory. For example,

tar xvfz 'PLoS_One_2010_May_21_5(5)_e10676.tar.gz'
cd 'PLoS_One_2010_May_21_5(5)_e10676'

Find the NXML file with ls *.nxml. Now convert it with, for example

xsltproc ../jats-to-mediawiki.xsl pone.0010676.nxml >

In a browser, go to the Special:Import page of your target mediawiki installation, and import it.

You could use the scripts/ script to grab several examples articles, which were used in testing.


  • Pre-alpha


Is on our Github wiki.

Bugs / issues

We're using the Github issue tracker for bug reports and to-do items.

Contact / Collaborate

Join our Google Group jats-to-mediawiki


Public domain

This work is in the public domain and may be used and reproduced without special permission.

Something went wrong with that request. Please try again.