W3C home > Mailing lists > Public > public-xml-processing-model-wg@w3.org > September 2008

Re: How to use p:compare

From: Norman Walsh <ndw@nwalsh.com>
Date: Thu, 18 Sep 2008 16:34:39 -0400
To: public-xml-processing-model-wg@w3.org
Message-ID: <m2od2l8a74.fsf@nwalsh.com>
Jeni Tennison <jeni@jenitennison.com> writes:

> Norm,
>
> On 18 Sep 2008, at 20:26, Norman Walsh wrote:
>> What's the easiest way to write a step that compares two documents and
>> returns one of them if they're the same? If they're different, it
>> throws an error
>
> Two questions: What do you mean by "the same"? Are you using XPath 2.0?

I mean

  <p:compare fail-if-not-equal="true">
    <p:input port="source">...</p:input>
    <p:input port="result">...</p:input>
  <p:compare>

returns <c:result>true</c:result> :-)

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | Sarchasm: The gulf between the author
http://nwalsh.com/            | of sarcastic wit and the person who
                              | doesn't get it.

Received on Thursday, 18 September 2008 20:35:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 18 September 2008 20:35:22 GMT