-
Notifications
You must be signed in to change notification settings - Fork 0
/
dix2statistic-markdown.xslt
82 lines (55 loc) · 2.42 KB
/
dix2statistic-markdown.xslt
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text"/>
<xsl:strip-space elements="*"/>
<xsl:param name="from"/>
<xsl:param name="to"/>
<xsl:param name="pair"/>
<xsl:param name="antipair"/>
<xsl:param name="version"/>
<xsl:param name="invert"/>
<xsl:template match="transfer|interchunk|postchunk|dictionary">
# Apertium-<xsl:value-of select="$pair"/>: <xsl:value-of select="$from"/>–<xsl:value-of select="$to"/> statistics
This statistic has been generated automatically from the XML dictionary data.
It is intended for visualisation. Please find the machine-readable source codes
in [apertium repository for <xsl:value-of select="$pair"/>](https://github.com/apertium/apertium-<xsl:value-of select="$pair"/>/).
## `<xsl:value-of select="tokenize(base-uri(), '/')[last()]"/>`
<xsl:apply-templates/>
- - -
Documentation for [apertium-<xsl:value-of select="$pair"/>](//github.com/apertium/apertium-<xsl:value-of select="$pair"/>/).
Generated with [Flammie’s apevis-xslt](https://github.com/flammie/apevis-xslt).
</xsl:template>
<xsl:template match="alphabet">
### Alphabet
There are <xsl:value-of select="string-length(.)"/> symbols in this dictionary.
</xsl:template>
<xsl:template match="sdefs">
### Tags (Multichar Symbols)
There are <xsl:value-of select="count(sdef)"/> symbols in this dictionary.
</xsl:template>
<xsl:template match="pardefs">
### Paradigms
There are <xsl:value-of select="count(pardef)"/> paradigms in this dictionary.
</xsl:template>
<xsl:template match="section">
### Dictionary <xsl:value-of select="@id"/> <xsl:value-of select="@type"/>
There are <xsl:value-of select="count(e)"/> words in the dictionary part
<xsl:value-of select="@id"/>.
</xsl:template>
<xsl:template match="section-def-cats">
### Categories (parts of chunks)
There are <xsl:value-of select="count(def-cat)"/> cats in this ruleset.
</xsl:template>
<xsl:template match="section-def-attrs">
### Attributes
There are <xsl:value-of select="count(def-attr)"/> attrs in this ruleset.
</xsl:template>
<xsl:template match="section-def-macros">
### Macros
There are <xsl:value-of select="count(def-macro)"/> attrs in this ruleset.
</xsl:template>
<xsl:template match="section-rules">
### Rules
There are <xsl:value-of select="count(rule)"/> attrs in this ruleset.
</xsl:template>
</xsl:stylesheet>