[BUG] OAI-PMH does not work with custom stylesheet #1481
Copy link
Copy link
Open
Labels
☇ bugA non-security related bug.A non-security related bug.
Milestone
Description
Description
A custom transformation stylesheet can be configured, but is not entered correctly into the OAI-PMH answer. Therefore it is not found and an error is shown: "Fehler beim Laden des Stylesheets: Das Parsen eines XSLT-Stylesheets ist fehlgeschlagen."
Here is the generated XML code:
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="https://HOSTNAME/"?>
<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>2025-02-07T21:29:33Z</responseDate>
[...]
Reproduction
Steps to reproduce the behaviour:
- Configure a TYPO3 page for OAI-PMH.
- Select a custom stylesheet in the configuration "Transformation Stylesheet".
- Open OAI-PMH URL in web browser.
- See error.
Expected Behavior
The custom stylesheet should be used by providing the correct URL in the XML output.
Environment
- Latest main branch with TYPO3 v12 on Debian GNU Linux stable
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
☇ bugA non-security related bug.A non-security related bug.
Activity
stweil commentedon Feb 7, 2025
The default stylesheet does not display
dc:descriptionwhile the latest stylesheet for EPrints supports it. Therefore I wanted to configure this newer stylesheet.stweil commentedon Feb 7, 2025
Another reason for an updated stylesheet are some issues with the HTML output of the current one (reported by W3C validator):
langattribute to the html start tag to declare the language of this document.<!DOCTYPE html>.