<?xml version="1.0"?>
<j:jelly xmlns:j="jelly:core"
  xmlns:html="jelly:html"
  xmlns:x="jelly:xml"
  xmlns="jelly:org.apache.commons.latka.jelly.LatkaTagLibrary">

    
    <suite defaultHost="example.org" defaultPort="80">

      <session>      

        <reportMessage message="boo1"/>

        <request path="/" host="example.net">
          <validate>
            <!-- <regexp pattern="These domain names are reserveded"/> -->
            <regexp pattern="These domain names are reserved"/>
          </validate>
        </request>


        <reportMessage message="boo2"/>

        <request path="/" label="fred">
          <validate>
            <!-- <regexp pattern="These domain names are reserved"/> -->
            <regexp pattern="These domain names are reserved"/>
            <statusCode/>
          </validate>
        </request>
        
        <!-- create a stringreader to parse the html, as parsing using
         !   the body of the parse tag is busted
         !-->
        <j:new var="fredHtml" className="java.io.StringReader">
          <j:arg value="${fred.resource}" />
        </j:new>
        <!-- parse the html -->
        <html:parse var="home" element="lower" attribute="lower"
          html="${fredHtml}" />
        <!-- grab the title of the page -->
        <j:set var="title"><x:expr select="$home/html/head/title/text()" /></j:set>
        <reportMessage message="${title}"/>
        
</session>


<reportMessage message="boo3"/>
      
      <request path="/" host="example.net">
        <validate>
          <!-- <regexp pattern="These domain names are reserved"/> -->
          <regexp pattern="These domain names are reserved"/>
        </validate>
      </request>


    </suite>        
    
</j:jelly>