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 a text node
This template generates text for two predicates. The first is a label for a person's name and the second is a description for the person's description. The textnode tag is a template only tag which creates a text node in place of the tag. This allows generated content inside the description tag which will wrap.
<vbox datasources="animals.rdf" ref="http://www.some-fictitious-zoo.com/humans">
<template>
<vbox uri="rdf:*">
<label class="header" value="rdf:http://www.some-fictitious-zoo.com/rdf#name"/>
<description>
<textnode value="rdf:http://www.some-fictitious-zoo.com/rdf#description"/>
</description>
</vbox>
</template>
</vbox>
