forked from eprintsug/crosswalks_sgul
-
Notifications
You must be signed in to change notification settings - Fork 0
/
symplectic_xwalks_toolkit_config.xsl
28 lines (22 loc) · 1.65 KB
/
symplectic_xwalks_toolkit_config.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
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:crosswalks="info:symplectic/crosswalks" xmlns:epconfig="http://www.symplectic.co.uk/ep3/config" exclude-result-prefixes="crosswalks epconfig" version="1.0">
<xsl:output method="xml" encoding="utf-8" indent="yes"/>
<xsl:variable name="default-field-start">[$</xsl:variable>
<xsl:variable name="default-field-end">]</xsl:variable>
<xsl:variable name="default-field-wrap-start">~</xsl:variable>
<xsl:variable name="default-field-wrap-end">~</xsl:variable>
<xsl:variable name="default-list-separator">; </xsl:variable>
<!--
Only use the EPrints configuration file if the repository-type is 'eprints'
-->
<xsl:variable name="config-eprints-file">symplectic_xwalks_toolkit_config_eprints.xml</xsl:variable>
<xsl:variable name="config-eprints" select="document($config-eprints-file)[$repository-type='eprints']"/>
<xsl:variable name="config-eprints-fields" select="$config-eprints//epconfig:fields" />
<xsl:variable name="config-eprints-pagerange-field" /> <!-- pagerange -->
<xsl:variable name="config-eprints-pages-field" /> <!-- pages -->
<xsl:variable name="repository-type" select="string($crosswalk-mappings/@for)" />
<!-- These settings should be copied to your mapping implementation -->
<xsl:variable name="crosswalk-mappings" select="document('')//crosswalks:mappings" />
<xsl:variable name="crosswalk-object-mappings" select="document('')//crosswalks:object-mappings" />
<xsl:variable name="crosswalk-label-mappings" select="document('')//crosswalks:label-mappings" />
</xsl:stylesheet>