XUL:Template Features in 1.9: Difference between revisions

m
Line 134: Line 134:
</pre>
</pre>


The multiple flag may be used to simple 'or' expressions:
The multiple flag may be used for simple 'or' expressions:


<pre>
<pre>
Line 142: Line 142:
The example above will match if ?name is either fred, sarah or robert. Don't put any spaces between the commas.
The example above will match if ?name is either fred, sarah or robert. Don't put any spaces between the commas.


You can, of course, use multiple &lt;where&gt; elements. All of them must match for content to be generated. If a &lt;where&gt; condition does not match, the content will be generated for that item and rule, although another rule may still match.
You can, of course, use multiple &lt;where&gt; elements. All of them must match for content to be generated. If a &lt;where&gt; condition does not match, no content will be generated for that item and rule, although another rule may still match.


==Controlling Recursion==
==Controlling Recursion==
287

edits