Skip to content
Snippets Groups Projects
Commit 3cf91b22 authored by David Maus's avatar David Maus
Browse files

Default Pipeline

parent 74fd28c8
No related branches found
No related tags found
No related merge requests found
<p:declare-step version="1.0" name="main"
xmlns:p="http://www.w3.org/ns/xproc">
<p:input port="source" primary="true" sequence="false"/>
<p:output port="result" primary="true" sequence="false"/>
<p:xslt name="normalize">
<p:input port="source">
<p:pipe step="main" port="source"/>
</p:input>
<p:input port="stylesheet">
<p:document href="../xslt/mets.xsl"/>
</p:input>
<p:input port="parameters">
<p:empty/>
</p:input>
</p:xslt>
<p:validate-with-xml-schema assert-valid="true">
<p:input port="source">
<p:pipe step="normalize" port="result"/>
</p:input>
<p:input port="schema">
<p:document href="../schema/mets.xsd"/>
</p:input>
</p:validate-with-xml-schema>
</p:declare-step>
<xsl:transform version="2.0"
exclude-result-prefixes="#all"
xpath-default-namespace="http://www.loc.gov/METS/"
xmlns="http://www.loc.gov/METS/"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- Normalisiert die von Kitodo.Production erzeugte METS-Datei -->
<xsl:template match="node() | @*">
<xsl:copy><xsl:apply-templates select="node() | @*"/></xsl:copy>
</xsl:template>
<xsl:template match="mets">
<xsl:copy>
<xsl:apply-templates/>
</xsl:copy>
</xsl:template>
<xsl:template match="metsHdr">
<metsHdr CREATEDATE="{@CREATEDATE}" LASTMODDATE="{current-dateTime()}">
<agent ROLE="CUSTODIAN" TYPE="ORGANIZATION">
<name>Herzog August Bibliothek Wolfenbüttel</name>
</agent>
</metsHdr>
</xsl:template>
</xsl:transform>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment