summaryrefslogtreecommitdiff
path: root/doc/yelp-xsl/C/mal.gloss.match.page
blob: e3e5ebdfc47e0d56312d302b6d5b8256d6a5e6a0 (plain)
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
<?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" xmlns:xsl="FIXME" style="xslt-template" id="mal.gloss.match">
 <info>
  <link type="guide" xref="mal-gloss" group="templates"/>
  <link type="guide" xref="templates" group="mal"/>
  <desc>Determine whether a glossary term matches a criterion.</desc>
 </info>
 <title>mal.gloss.match</title>
 <synopsis>
  <title>Parameters</title>
  <terms>
   <item>
    <title><code>$match</code></title>
    <p>A <sys>gloss:match</sys> element containing criteria.</p>
   </item>
   <item>
    <title><code>$term</code></title>
    <p>A <sys>gloss:term</sys> element to attempt to match.</p>
   </item>
  </terms>
 </synopsis>
 <p>This template determines whether a glossary term matches a condition, as given
 by a <sys>gloss:match</sys> element. If the term matches, an empty string is output.
 Otherwise, a non-empty string is output.</p>
 <p>To determine if a term matches a set of matches, call this template for each
 <sys>gloss:match</sys> element, then check if the concatenated result is empty.</p>
 <list style="compact">
  <title>Calls Parameters</title>
  <item>
   <p><link xref="mal.cache"/></p>
  </item>
 </list>
</page>