Index

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.

View   View Data Source

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