<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="http://www.fgeorges.org/xslt-unit/report-to-html.xsl"?>
<test:report xmlns:t="http://www.fgeorges.org/xslt/unit-test"
             xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
             xmlns:xs="http://www.w3.org/2001/XMLSchema"
             xmlns:hw="http://www.fgeorges.org/hello-world"
             xmlns:test="http://www.fgeorges.org/xslt/unit-test"
             xmlns:exf="http://www.fgeorges.org/exslt2"
             tested="hello-world.xsl"
             tested-absolute="file:/c:/Documents%20and%20Settings/Florent%20Georges/My%20Documents/xslt/xslt-unit/test/hello-world.xsl"
             date="2007-01-23T20:12:14.755+01:00">
   <test:tests id="hello-world-0">
      <t:title>hello-world(), arity 0</t:title>
      <test:test id="hello-world-0.1" successful="true">
         <t:expect select="'Hello, world!'" pred="eq"/>
         <test:expect-resolved>
            <test:atomic type="xs:string">Hello, world!</test:atomic>
         </test:expect-resolved>
         <test:result>
            <test:atomic type="xs:string">Hello, world!</test:atomic>
         </test:result>
         <test:xslt>
            <xsl:sequence select="hw:hello-world()"/>
         </test:xslt>
      </test:test>
   </test:tests>
   <test:tests id="hello-world-1">
      <t:title>hello-world(), arity 1</t:title>
      <test:test id="hello-world-1.1" successful="true">
         <t:expect test="$t:result eq 'Hello, Jeni!'"/>
         <test:result>
            <test:atomic type="xs:string">Hello, Jeni!</test:atomic>
         </test:result>
         <test:xslt>
            <xsl:sequence select="hw:hello-world('Jeni')"/>
         </test:xslt>
      </test:test>
   </test:tests>
   <test:tests id="elem">
      <t:title>'elem' template rule</t:title>
      <t:context select="$elem"/>
      <test:test id="elem.1" successful="true">
         <t:title>'elem' #1</t:title>
         <t:expect as="element()+">
            <elem1/>
            <elem2 id="id"/>
         </t:expect>
         <test:expect-resolved>
            <test:element type="xs:untyped">
               <elem1/>
            </test:element>
            <test:element type="xs:untyped">
               <elem2 id="id"/>
            </test:element>
         </test:expect-resolved>
         <test:result>
            <test:element type="xs:untyped">
               <elem1/>
            </test:element>
            <test:element type="xs:untyped">
               <elem2 id="id"/>
            </test:element>
         </test:result>
         <test:xslt>
            <xsl:apply-templates select="."/>
         </test:xslt>
      </test:test>
      <test:test id="elem.2" successful="true">
         <t:title>'elem' #2</t:title>
         <t:expect as="element()+" pred="hw:predicate">
            <elem1/>
            <elem2 id="id"/>
         </t:expect>
         <test:expect-resolved>
            <test:element type="xs:untyped">
               <elem1/>
            </test:element>
            <test:element type="xs:untyped">
               <elem2 id="id"/>
            </test:element>
         </test:expect-resolved>
         <test:result>
            <test:element type="xs:untyped">
               <elem1/>
            </test:element>
            <test:element type="xs:untyped">
               <elem2 id="id"/>
            </test:element>
         </test:result>
         <test:xslt>
            <xsl:apply-templates select="."/>
         </test:xslt>
      </test:test>
   </test:tests>
   <test:tests id="false">
      <t:title>False negative</t:title>
      <t:context select="$elem"/>
      <test:test id="false.1" successful="false">
         <t:expect as="element()+">
            <elem2 id="id"/>
         </t:expect>
         <test:expect-resolved>
            <test:element type="xs:untyped">
               <elem2 id="id"/>
            </test:element>
         </test:expect-resolved>
         <test:result>
            <test:element type="xs:untyped">
               <elem1/>
            </test:element>
            <test:element type="xs:untyped">
               <elem2 id="id"/>
            </test:element>
         </test:result>
         <test:xslt>
            <xsl:apply-templates select="."/>
         </test:xslt>
      </test:test>
   </test:tests>
</test:report>