-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathead2dcterms.xsl
43 lines (30 loc) · 1.4 KB
/
ead2dcterms.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
43
<?xml version="1.0" encoding="UTF-8"?>
<!--
Map a file in a xml format into another one via a mapping schema and a mapper api.
This version uses xslt version 2.0.
See notes inside readme.md and xml_mapper.xsl.
@version: 20160222
@copyright Daniel Berthereau, 2015-2016
@license CeCILL v2.1 http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.html
@link https://github.com/Daniel-KM/Ead2DCterms
-->
<!-- Note: Source namespace may be needed and prefix excluded if paths are prefixed. -->
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:ead="http://www.loc.gov/ead"
exclude-result-prefixes="xsl xs">
<!-- Import mapper api. -->
<xsl:import href="XmlMapper/xslt_2/xml_mapper_api.xsl" />
<!-- Specific rules that are not currently managed by the mapper api. -->
<xsl:import href="xslt_2/ead2dcterms_rules.xsl" />
<xsl:output method="xml" indent="yes" encoding="UTF-8" />
<xsl:strip-space elements="*" />
<!-- Parameters -->
<!-- Profile of options. The url should be absolute or relative to "xml_mapper_api.xml". -->
<xsl:param name="configuration" as="xs:string+">../../ead2dcterms_config.xml</xsl:param>
<!-- This main template is used only to check the namespace. -->
<xsl:template match="/ead:ead">
<xsl:apply-templates select="/" />
</xsl:template>
</xsl:stylesheet>