Difference between revisions of "EPrints OAI Stylesheet"

From EPrints Documentation
Jump to: navigation, search
m (moved OAI XSLT to EPrints OAI Stylesheet: Ambiguous naming)
(No difference)

Revision as of 13:06, 1 May 2012


  1. Download the XSL source from https://svn.eprints.org/eprints/trunk/system/lib/static/oai2.xsl
  2. Make oai.xsl accessible from somewhere on your OAI 2 server - browsers' same-origin policy require the xsl file to be hosted on the same server
  3. Add the stylesheet to your OAI 2 response:
<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet type='text/xsl' href='/oai2.xsl' ?>
<OAI-PMH  xmlns="http://www.openarchives.org/OAI/2.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/ http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd">
   <error  code="badVerb">Requires verb argument</error>