WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.
Example: Generate a list of items using the full syntax
This is the simplest and most common template using the full syntax, in which we iterate over a list of children.
<vbox datasources="animals.rdf" ref="http://www.some-fictitious-zoo.com/mammals">
<template>
<rule>
<conditions>
<content uri="?uri"/>
<member container="?uri" child="?animal"/>
<triple subject="?animal"
predicate="http://www.some-fictitious-zoo.com/rdf#name"
object="?name"/>
</conditions>
<action>
<label uri="?animal" value="?name"/>
</action>
</rule>
</template>
</vbox>
