summaryrefslogtreecommitdiff
path: root/doc/yelp-xsl/C/tmpl.page
blob: 1715bc39f3f78a528ad39bc83c7c2200588da99a (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" type="guide" style="xslt-stylesheet" id="tmpl">
 <info>
  <link type="guide" xref="stylesheets" group="tmpl"/>
  <desc>Perform simple substitutions in text files.</desc>
  <revision version="40" date="FIXME" status="FIXME"/>
 </info>
 <title>Text Templates</title>
 <p>This stylesheet contains templates to perform simple substitutions on text
 and files containing text. The primary purpose of these templates is to allow
 CSS and JavaScript to be maintained in separate files outside the XSLT, but
 still allow those files to reference variables for things like color themes
 and text directionality.</p>
 <p>The substitution evaluates anything between <sys>{{</sys> and <sys>}}</sys>. Usually, this will
 be a reference to a parameter or variable, but it can be any XPath expression.
 For example, <sys>{{$color.fg}}</sys> will be replaced with the primary text color.</p>
 <p>This syntax is similar to XSLT attribute value templates, except that it uses
 double curly braces to avoid conflicts with the many curly braces used in CSS
 and JavaScript files.</p>
 <note style="plain">
  <p>This stylesheet was added in version 40.</p>
 </note>
 <links type="topic" groups="imports" style="linklist">
  <title>Imports Stylesheets</title>
 </links>
 <links type="topic" groups="includes" style="linklist">
  <title>Includes Stylesheets</title>
 </links>
 <links type="topic" groups="params" style="linklist">
  <title>Defines Parameters</title>
 </links>
 <links type="topic" groups="keys" style="linklist">
  <title>Defines Keys</title>
 </links>
 <links type="topic" groups="templates" style="linklist">
  <title>Defines Templates</title>
 </links>
 <links type="topic" groups="modes" style="linklist">
  <title>Defines Modes</title>
 </links>
 <list style="compact">
  <title>Calls Templates</title>
  <item>
   <p><link xref="l10n.align.end"/></p>
  </item>
  <item>
   <p><link xref="l10n.align.start"/></p>
  </item>
  <item>
   <p><link xref="l10n.direction"/></p>
  </item>
 </list>
</page>