Difference between revisions of "Archive:EPrints OAI Stylesheet"

From EPrints Documentation
Jump to: navigation, search
(Created page with '==Usage== # Download the XSL source from https://svn.eprints.org/eprints/trunk/system/lib/static/oai.xsl # Make oai.xsl accessible from somewhere on your OAI 2 server - browsers…')
 
m (Drn@ecs.soton.ac.uk moved page EPrints OAI Stylesheet to Archive:EPrints OAI Stylesheet: Out of date)
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
−
==Usage==
+
{{Out of Date|This page needs updating.}}
  
−
# Download the XSL source from https://svn.eprints.org/eprints/trunk/system/lib/static/oai.xsl
+
To use the EPrints OAI stylesheet on another server:
−
# 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
+
 
 +
# 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:
 
# Add the stylesheet to your OAI 2 response:
  
Line 8: Line 10:
 
<?xml version='1.0' encoding='UTF-8'?>
 
<?xml version='1.0' encoding='UTF-8'?>
 
<?xml-stylesheet type='text/xsl' href='/oai2.xsl' ?>
 
<?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">
+
<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>
 
   <responseDate>2011-12-15T18:11:46Z</responseDate>
 
   <request>http://eprints.soton.ac.uk/cgi/oai2</request>
 
   <request>http://eprints.soton.ac.uk/cgi/oai2</request>
Line 14: Line 16:
 
</OAI-PMH>
 
</OAI-PMH>
 
</source>
 
</source>
 +
 +
 +
[[Category: OpenAccess]]

Latest revision as of 17:43, 9 October 2026

Warning.png

Out of Date
The page has not been updated recently and is most likely out of date.

This page needs updating.


To use the EPrints OAI stylesheet on another server:

  1. Download the XSL source from https://svn.eprints.org/eprints/trunk/system/lib/static/oai2.xsl
  2. 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
  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">
   <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>