Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <mike.gerwitz@rtspecialty.com>2017-12-21 10:51:43 -0500
committerMike Gerwitz <mike.gerwitz@rtspecialty.com>2018-09-11 09:30:51 -0400
commitec379ea29688828677ba0efba43cb003c0363f13 (patch)
treeb3a06b6537439c96932632322b5cf203645ff9e3
parent088a948891f430910d1c02fc5cc4092617ea3aee (diff)
downloadtame-ec379ea29688828677ba0efba43cb003c0363f13.tar.gz
tame-ec379ea29688828677ba0efba43cb003c0363f13.tar.bz2
tame-ec379ea29688828677ba0efba43cb003c0363f13.zip
vector/cmatch: Add `_vector-to-class_'
* vector/cmatch.xml: (_vector-to-class_): Add template. Lines starting
-rw-r--r--core/vector/cmatch.xml23
1 files changed, 23 insertions, 0 deletions
diff --git a/core/vector/cmatch.xml b/core/vector/cmatch.xml
index eead8c6..94964e0 100644
--- a/core/vector/cmatch.xml
+++ b/core/vector/cmatch.xml
@@ -221,5 +221,28 @@
<match on="@__yields@" value="@value@" />
</template>
+
+
+ \ref{_vector-to-class_} converts a vector into a classification.
+
+ <template name="_vector-to-class_"
+ desc="Convert a vector to a classification">
+ <param name="@name@" desc="Source vector" />
+ <param name="@as@" desc="Classification name" />
+
+ <param name="@yields@" desc="Classification yield">
+ <text></text>
+ </param>
+
+ <param name="@desc@" desc="Classification description">
+ <text>Classification of </text>
+ <param-value name="@name@" />
+ </param>
+
+
+ <classify as="@as@" desc="@desc@" yields="@yields@">
+ <match on="@name@" />
+ </classify>
+ </template>
</package>