<root xmlns:test="http://www.powerware.com/nz/XMLSchemaUnitTest">
  <test:case test="with" result="pass" desc="test:case with">
    <testingWith nested="false" attrib="here">
      <test:attribute id="a" name="attrib" result="fail"  desc="test:attribute can remove an attribute"/>
      <test:attribute name="attrib" value="there" result="pass"  desc="test:attribute can change the value of an attribute" />
      <test:attribute name="aswell" value="additional" result="pass"  desc="test:attribute can add a new attribute" />
      <test:attribute ref="a" name="instead" value="of" result="pass"  desc="test:attribute can ref another test:attribute"/>
      <test:attribute name="globalRefs" value="arePossible" result="fail" desc="test:attribute can ref multiple tests of different elements">
      	<test:ref>b</test:ref>
      	<test:ref>c</test:ref>
      	<test:ref>refWith</test:ref>
      </test:attribute>

      <child child="me"/>
      <test:case test="with" result="pass" desc="test:case with can be nested">
        <testingNestedWith nested="true">
          <child child="me"/>
        </testingNestedWith>
      </test:case>
    </testingWith>
  </test:case>

  <test:case id="refWithout" test="without" result="fail" desc="test:case without">
    <testingWithout nested="false">
      <test:attribute id="b" name="attrib" value="here"/>
      <test:attribute id="c" name="attribAlso" value="here"/>
      <child child="me"/>
      <test:case test="with" result="pass" desc="test:case with can be nested inside test:case without">
        <testingNestedWithInsideWithout nested="true">
          <child child="me"/>
        </testingNestedWithInsideWithout>
      </test:case>
    </testingWithout>
  </test:case>

  <test:case id="refWith" test="with">
  	<testingAsWell nested="false">
  	  <child child="me" />
  	</testingAsWell>
  </test:case>

  <test:case ref="refWithout" test="with" result="pass" desc="test:case can ref another test">
    <testingInstead nested="false">
      <child child="me"/>
      <test:case test="with" result="pass" desc="nested test:case does not inherit a parent's ref">
        <testingNestedInstead nested="true">
          <child child="me"/>
        </testingNestedInstead>
      </test:case>
    </testingInstead>
  </test:case>
  
</root>
