Example: Generate a grid of results

In the example, a grid is generated. The first rule matches containers and generates a row for each of the five animal classes. The animal class is given a bold label using the header style class. The second rule generates a label for each leaf node. The labels are placed inside the container's element with the uri attribute, which here is the row. The result is a set of labels in one row. Note that only one grid column was declared. Since there are more results than columns, the grid will add columns internally to display the extra cells properly.

View   View Data Source

  <rows datasources="animals.rdf" ref="">
      <rule iscontainer="true">
        <row uri="rdf:*">
          <label class="header" value="rdf:"/>
        <label uri="rdf:*" value="rdf:"/>
Copyright © 1999 - 2005