Skip to content

Commit

Permalink
#614 Added xslt-migrate-fachreferate-to-destatis.xsl
Browse files Browse the repository at this point in the history
  • Loading branch information
Possommi committed Nov 8, 2024
1 parent fc9eb81 commit 05817eb
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:mods="http://www.loc.gov/mods/v3" exclude-result-prefixes="xlink xsl" version="1.0">

<xsl:param name="WebApplicationBasURL"/>

<xsl:template match='@*|node()'>
<xsl:copy>
<xsl:apply-templates select='@*|node()'/>
</xsl:copy>
</xsl:template>

<xsl:template match="mods:classification[contains(@authorityURI, 'fachreferate')]">
<xsl:variable name="destatis-categid" select="substring-after(@valueURI, '#')"/>
<mods:classification valueURI="{$WebApplicationBasURL}classifications/fachreferate#{$destatis-categid}" authorityURI="{$WebApplicationBasURL}classifications/destatis"/>
</xsl:template>
</xsl:stylesheet>

0 comments on commit 05817eb

Please sign in to comment.