This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Comparing nodes minus one child
- To: XSL-List at lists dot mulberrytech dot com
- Subject: [xsl] Comparing nodes minus one child
- From: mjyoungblut at mmm dot com
- Date: Tue, 25 Sep 2001 14:37:39 -0500
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hello,
If I have two elements that have the same structure in two
variables(today_product and yesterday_product):
<Product>
<Child1>...</Child1>
<Child2>...</Child2>
...
<ChildX>...</ChildX>
</Product>
How can I compare the two <Product> elements by comparing everything but
<ChildX> to see if they are equal? If possible, I would like to do this in
one line as opposed to comparing each part, which I can already do.
i.e. today_product (minus ChildX) ?= yesterday_product (minus ChildX)
Thanks in advance,
Matt Youngblut
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list