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>
Copyright © 1999 - 2005 XULPlanet.com