Repository navigation
Expand file tree
/
Copy pathlayout.xml
More file actions
51 lines (46 loc) · 1.91 KB
/
Copy pathlayout.xml
File metadata and controls
51 lines (46 loc) · 1.91 KB
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
<Layout xmlns="urn:speedata.de:2009/publisher/en"
xmlns:sd="urn:speedata:2009/publisher/functions/en">
<Pageformat width="120mm" height="70mm"/>
<Margin left="10mm" right="10mm" top="10mm" bottom="10mm"/>
<DefineFontfamily name="head" fontsize="12" leading="14">
<Regular fontface="sans-bold"/>
</DefineFontfamily>
<DefineTextformat name="grouphead" margin-top="8pt" break-below="no"/>
<!-- Way 1: the icon font as a font family for the layout -->
<LoadFontfile name="fa-solid" filename="fa-solid-900.ttf"/>
<DefineFontfamily name="icons" fontsize="10" leading="12">
<Regular fontface="fa-solid"/>
</DefineFontfamily>
<!-- Way 2: the icon classes from the web shop -->
<Stylesheet>
@font-face { font-family: "FA"; font-weight: 400; src: url("fa-regular-400.ttf"); }
@font-face { font-family: "FA"; font-weight: 900; src: url("fa-solid-900.ttf"); }
.fa-solid, .fa-regular { font-family: "FA"; font-style: normal; }
.fa-solid { font-weight: 900; }
.fa-regular { font-weight: 400; }
.fa-truck-fast::before { content: "\f48b"; }
.fa-circle-check::before { content: "\f058"; }
.fa-triangle-exclamation::before { content: "\f071"; color: red; }
</Stylesheet>
<Record element="data">
<PlaceObject>
<Textblock>
<ForAll select="group">
<Paragraph fontfamily="head" textformat="grouphead">
<Value select="@name"/>
</Paragraph>
<Paragraph>
<Fontface fontfamily="icons">
<Value select="if (@use = 'outdoor') then '' else ''"/>
</Fontface>
<Value select="if (@use = 'outdoor') then ' Indoor and outdoor' else ' Indoor only'"/>
<Value select="concat(' · ', @material)"/>
</Paragraph>
<Paragraph>
<Value select="description"/>
</Paragraph>
</ForAll>
</Textblock>
</PlaceObject>
</Record>
</Layout>