RE: Cannot see how test insert-005 can pass...

> Jim,
> 
> Thanks for your comments too.
> 
> Is it not the case though that all outputs are documents (individual
> or sequences) and that in all tests that don't explicitly use the
> t:document its presence is implied?
> 
> If so, that isn't made explicit in the documentation.

Inputs/Outputs of a test are always documents (zero or more). If it is
only one document, you don't have to use t:document:

<t:input port='source'>
  <doc>
</t:input>

Is the same as:

<t:input port='source'>
  <t:document><doc></t:document>
</t:input>

However, if you want to pass multiple documents as input (or check for
multiple documents on the output), you will have to use t:document:

<t:input port='source'>
  <t:document><doc></t:document>
  <t:document><doc></t:document>
  <t:document><doc></t:document>
</t:input>

Regards,
Vojtech

Received on Thursday, 19 March 2009 08:37:48 UTC