-
Notifications
You must be signed in to change notification settings - Fork 3
/
webkwestie.xsl
43 lines (35 loc) · 1.82 KB
/
webkwestie.xsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:oai_czp="http://www.imsglobal.org/xsd/imsmd_v1p2" xmlns:oai="http://www.openarchives.org/OAI/2.0/" xmlns:lom="http://www.imsglobal.org/xsd/imsmd_v1p2" xmlns="http://www.openarchives.org/OAI/2.0/" version="1.0" xsi:schemaLocation="http://www.imsglobal.org/xsd/imsmd_v1p2 http://www.imsglobal.org/xsd/imsmd_v1p2p4.xsd http://www.openarchives.org/OAI/2.0/ http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd">
<xsl:output method="xml" indent="no" encoding="UTF-8" standalone="no"/>
<xsl:include href="edurep://repositoryToVdexMapping"/>
<xsl:include href="edurep://validate"/>
<!-- Collectienaam voor het koppelen van -->
<xsl:variable name="collectionName">
<xsl:text>webkwestie</xsl:text>
</xsl:variable>
<!-- De door de collectie gebruikte namespace -->
<xsl:variable name="usedNamespace">
<xsl:text>oai_czp</xsl:text>
</xsl:variable>
<xsl:template match="/">
<xsl:apply-templates select="//oai_czp:lom"/>
</xsl:template>
<xsl:template match="oai_czp:lom">
<xsl:copy>
<xsl:attribute name="xsi:schemaLocation">http://www.imsglobal.org/xsd/imsmd_v1p2 imsmd_v1p2p4.xsd</xsl:attribute>
<xsl:apply-templates select="@*[. != xsi:schemaLocation]|node()"/>
<!-- Mapping begrippenkader -->
<xsl:call-template name="collectionMapping"/>
<!-- Maak een classificatie voor de validatie -->
<xsl:call-template name="buildClassification"/>
<!-- add access rights -->
<xsl:call-template name="ensureAccessrights">
<xsl:with-param name="taxons" select="'OpenAccess::open toegang||'"/>
</xsl:call-template>
</xsl:copy>
</xsl:template>
<!-- default copy -->
<xsl:template match="@*|node()">
<!-- Velden valideren -->
<xsl:call-template name="validateValue"/>
</xsl:template>
</xsl:stylesheet>