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

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

From: David A. Lee <dlee@calldei.com>
Date: Wed, 7 Jan 2009 20:07:53 -0500
Message-ID: <CB55514CE6A344A7B0A920D811622E2E@calldei.com>
To: "XProc Dev" <xproc-dev@w3.org>

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:option name="target" value="p:delete"/>


( 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">

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">


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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:03:04 UTC