This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Hierarchy problem
- From: DPawson at rnib dot org dot uk
- To: xsl-list at lists dot mulberrytech dot com
- Date: Mon, 22 Jul 2002 14:58:27 +0100
- Subject: RE: [xsl] Hierarchy problem
- Reply-to: xsl-list at lists dot mulberrytech dot com
Thanks Jeni.
David M suggested starting from the child and looking at the parent,
I'll spend some time on that.
> On the set logic stuff. The general pattern is:
>
> count($node-set | $node) = count($node-set)
>
> is true only if $node is in the node set $node-set.
<shhh, don't let DC read this> 'is in the nodeset' I interpreted
as '$node is a member of $node-set' </sssh>
I guess this works even if $node is *anywhere* in the document tree.
Just so long as its been collected into $node-set by some means.
>
> You can make the $node-set be the children of $x:
>
> count($x/* | $node) = count($x/*)
>
> in which case you're testing whether $node is a child of $x, or you
> can make the $node-set be the descendants of $x:
>
> count($x//* | $node) = count($x//*)
>
> in which case you're testing whether $node is one of the descendants
> of $x.
I think that's sunk in now Jeni, I'll find out next time I come to use it!
THanks again peoples.
regards DaveP
-
NOTICE: The information contained in this email and any attachments is
confidential and may be legally privileged. If you are not the
intended recipient you are hereby notified that you must not use,
disclose, distribute, copy, print or rely on this email's content. If
you are not the intended recipient, please notify the sender
immediately and then delete the email and any attachments from your
system.
RNIB has made strenuous efforts to ensure that emails and any
attachments generated by its staff are free from viruses. However, it
cannot accept any responsibility for any viruses which are
transmitted. We therefore recommend you scan all attachments.
Please note that the statements and views expressed in this email
and any attachments are those of the author and do not necessarily
represent those of RNIB.
RNIB Registered Charity Number: 226227
Website: http://www.rnib.org.uk
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list