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

RE: [closed] Re: re p:filter-002

From: <Toman_Vojtech@emc.com>
Date: Fri, 18 Dec 2009 02:19:19 -0500
Message-ID: <997C307BEB90984EBE935699389EC41C62E9AF@CORPUSMX70C.corp.emc.com>
To: <xproc-dev@w3.org>
> Actually, I don't think the words in 5.1 allowed it even in the
> p:input case. That's clearly an editorial oversight. I fixed the
> problem this way:
> 
>   It is a dynamic error (err:XD0016) if the select expression on a
>   p:input returns atomic values or anything other than element or
>   document nodes (or an empty sequence).

Why is producing an empty sequence a problem here? How is it different
from having a "sequence" input port that gets no documents? To me:

<p:identity>
  <p:input port="source" select="i-do-not-exist">...</p:input>
</p:identity>

and:

<p:identity>
  <p:input port="source"<p:empty/></p:input>
</p:identity>

are the same and should both work.

Regards,
Vojtech
Received on Friday, 18 December 2009 07:55:13 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 18 December 2009 07:55:14 GMT