-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathalignmentFigures.xsl
45 lines (43 loc) · 1.52 KB
/
alignmentFigures.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
44
45
<?xml version="1.0" encoding="UTF-8"?>
<!--
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@Name : .xsl
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@version : 001
@creaDate : 2013/05/29
@modifDate
@vXslt: 1.0
@autor : Emmanuel Château [email protected]
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@use :
@knownBugs :
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@inspired :
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:tei="http://www.tei-c.org/ns/1.0"
version="1.0">
<xsl:output indent="yes" method="xml" encoding="UTF-8" />
<xsl:template match="root">
<div type="alignmentFigures">
<linkGrp><xsl:apply-templates select="group"/></linkGrp>
</div>
</xsl:template>
<xsl:template match="group">
<xsl:variable name="count">
<xsl:number format="0001"/>
</xsl:variable>
<link>
<xsl:attribute name="target">
<xsl:for-each select="ms">
<xsl:text>#</xsl:text>
<xsl:value-of select="." />
<xsl:text>Fig</xsl:text>
<xsl:value-of select="$count"/>
<xsl:text> </xsl:text>
</xsl:for-each>
</xsl:attribute>
</link>
</xsl:template>
</xsl:stylesheet>