W3C home > Mailing lists > Public > xproc-dev@w3.org > March 2009

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

From: <Toman_Vojtech@emc.com>
Date: Thu, 19 Mar 2009 04:36:59 -0400
Message-ID: <6E216CCE0679B5489A61125D0EFEC7870EEB2DC3@CORPUSMX10A.corp.emc.com>
To: <xproc-dev@w3.org>
> 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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 19 March 2009 08:37:49 GMT