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.

Index

Example: Generate HTML from a template

This example shows how to generate HTML content from a XUL template. The textnode element creates text with the name predicate.

View   View Data Source

<html:div datasources="animals.rdf" ref="http://www.some-fictitious-zoo.com/mammals"
          xmlns:html="http://www.w3.org/1999/xhtml">
  <template>
    <html:p uri="rdf:*"><textnode value="rdf:http://www.some-fictitious-zoo.com/rdf#name"/></html:p>
  </template>
</html:div>