-
Notifications
You must be signed in to change notification settings - Fork 4
/
id.xsl
28 lines (19 loc) · 888 Bytes
/
id.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
<?xml version="1.0" encoding="utf-8"?>
<!--
Writes the shorthand identifier for this proceedings volume into a file; executed by “make ID”
Part of ceur-make (https://github.com/ceurws/ceur-make/)
TODO add further documentation
© Christoph Lange and contributors 2012–2015
Licensed under GPLv3 or any later version
-->
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xsl:output method="text"/>
<xsl:template match="/">
<xsl:variable name="workshop" select="/workshop"/>
<xsl:variable name="year" select="year-from-date(xs:date(if ($workshop/date/from) then $workshop/date/from else $workshop/date))"/>
<xsl:variable name="id" select="concat($workshop/title/id, $year)"/>
<xsl:value-of select="$id"/>
</xsl:template>
</xsl:stylesheet>