The value will often be enclosed in double quotes; many commands only allow
a single attribute-value pair.
a single attribute-value pair. Note that the comment terminator
(<SAMP>--></SAMP>) should be preceded by whitespace to ensure that it
isn't considered part of an SSI token.
<p>
The allowed elements are:<p>
@@ -189,9 +192,11 @@ For example:
</dl>
<h2>Include variables</h2>
<h2>Include Variables</h2>
In addition to the variables in the standard CGI environment, these are available for the <code>echo</code> command, for <code>if</code> and <code>elif</code>, and to any program invoked by the document.
In addition to the variables in the standard CGI environment, these are
available for the <code>echo</code> command, for <code>if</code> and
<code>elif</code>, and to any program invoked by the document.
<dl>
<dt>DATE_GMT
@@ -210,6 +215,51 @@ current document.
</dl>
<p>
<H2>Variable Substitution</H2>
<P> Variable substitution is done within quoted strings in most cases
where they may reasonably occur as an argument to an SSI directive.
This includes the
<SAMP>config</SAMP>,
<SAMP>exec</SAMP>,
<SAMP>flastmod</SAMP>,
<SAMP>fsize</SAMP>,
<SAMP>include</SAMP>, and
<SAMP>set</SAMP>
directives, as well as the arguments to conditional operators.
You can insert a literal dollar sign into the string using backslash
quoting:
<PRE>
<!--#if expr="$a = \$test" -->
</PRE>
<P> If a variable reference needs to be substituted in the middle of a
character sequence that might otherwise be considered a valid
identifier in its own right, it can be disambiguated by enclosing
the reference in braces, <EM>à la</EM> shell substitution: