-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathlayout.xml
59 lines (54 loc) · 1.43 KB
/
layout.xml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<Layout
xmlns="urn:speedata.de:2009/publisher/en"
xmlns:sd="urn:speedata:2009/publisher/functions/en"
require="lxpath" version="4.19.21">
<Pageformat height="8cm" width="6cm" />
<Record element="data">
<SetVariable variable="indexentries" />
<ProcessNode select="keyword" />
<SetVariable variable="index">
<Element name="index">
<Makeindex select="$indexentries/indexentry" sortkey="name" section="section" pagenumber="page" />
</Element>
</SetVariable>
<ProcessNode select="$index/index" />
</Record>
<Record element="keyword">
<SetVariable variable="indexentries">
<Copy-of select="$indexentries" />
<Element name="indexentry">
<Attribute name="name" select="@word" />
<Attribute name="page" select="@page" />
</Element>
</SetVariable>
</Record>
<Record element="index">
<PlaceObject column="1">
<Table width="3" stretch="max">
<ForAll select="section">
<Tr break-below="no" top-distance="10pt">
<Td colspan="2" background-color="lightgray">
<Paragraph>
<Value select="@name"></Value>
</Paragraph>
</Td>
</Tr>
<ForAll select="indexentry">
<Tr>
<Td>
<Paragraph>
<Value select="@name" />
</Paragraph>
</Td>
<Td align="right">
<Paragraph>
<Value select="@page" />
</Paragraph>
</Td>
</Tr>
</ForAll>
</ForAll>
</Table>
</PlaceObject>
</Record>
</Layout>