Example 17-42: XSQL page to drive tab set

<?xml version="1.0"?>
<!-- Site.xsql: Provide tabset structure for home page -->
<?xml-stylesheet type="text/xsl" href="tab.xsl"?>
<site elt="query" xmlns:xsql="urn:oracle-xsql">
  <!--
   | Pass the values of current "tab" parameter (if passed in explicitly),
   | the "lasttab" cookie (if set), and the name of this page to the
   | XSLT stylesheet that renders the tab bar.
   +-->
  <xsql:set-stylesheet-param name="thispage" value="site.xsql"/>
  <xsql:set-stylesheet-param name="tab" value="{@tab}" ignore-empty-value="yes"/>
  <xsql:set-stylesheet-param name="lasttab" value="{@lasttab}"
                             ignore-empty-value="yes"/>
  <!-- Remember the last tab clicked in an HTTP Cookie -->
  <xsql:set-cookie name="lasttab" value="{@tab}" ignore-empty-value="yes"/>
  <!-- This is static XML that provides the tab structure -->
  <tabs>
     <tab id="News"   name="News"/>
     <tab id="Forums" name="Forums"/>
  </tabs>
</site>