Difference between revisions of "EPrints OAI Stylesheet"
m (adding categories) |
m (fix syntax) |
||
Line 17: | Line 17: | ||
[[Category: Out of Date]] | [[Category: Out of Date]] | ||
− | [[Category: OpenAccess | + | [[Category: OpenAccess]] |
Latest revision as of 00:44, 3 October 2018
To use the EPrints OAI stylesheet on another server:
- Download the XSL source from https://svn.eprints.org/eprints/trunk/system/lib/static/oai2.xsl
- Make oai2.xsl accessible from somewhere on your OAI 2 server - browsers' same-origin policy require the xsl file to be hosted on the same server
- 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">
<responseDate>2011-12-15T18:11:46Z</responseDate>
<request>http://eprints.soton.ac.uk/cgi/oai2</request>
<error code="badVerb">Requires verb argument</error>
</OAI-PMH>