- From: Norman Walsh <ndw@nwalsh.com>
- Date: Thu, 18 Sep 2008 16:34:39 -0400
- To: public-xml-processing-model-wg@w3.org
Received on Thursday, 18 September 2008 20:35:21 UTC
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 UTC