Extra whitespace in tests ... delete-001, bug in test ?

In required/delete-001.xml the input document is:

<t:input port='source'>
<p:pipeline name="pipeline" xmlns:p="http://www.w3.org/ns/xproc">

<p:delete>
<p:option name="target" value="p:delete"/>
</p:delete>

</p:pipeline>
</t:input>

( note the blank lines before and after p:delete )

The output doesnt conatiain the WS:

<t:output port='result'>
<p:pipeline xmlns:p="http://www.w3.org/ns/xproc" name="pipeline">
</p:pipeline></t:output>

In my implementation I delete the <p:delete> as specified and leave the 
whitespace alone.
But this then fails both a deep-equal() test and my own xml diff which is 
(correctly, IMHO) indicating
a difference.

Is this a bug in the test cases ? Or am I missing something in the specs 
about stripping out WS when doing p:delete .. ?

I think the input should not have the blank lines or the output should be
<t:output port='result'>
<p:pipeline xmlns:p="http://www.w3.org/ns/xproc" name="pipeline">




</p:pipeline></t:output>

-David

Received on Thursday, 8 January 2009 01:08:37 UTC