Re: [xsl] Re: Determining whether no single instance of a specific node exists

Subject: Re: [xsl] Re: Determining whether no single instance of a specific node exists
From: Mark Peters <markpeters.work@xxxxxxxxx>
Date: Fri, 5 Jun 2009 09:25:43 -0400
test="not(b[not(c)])"

That worked!  Thanks so much, David, for patiently figuring out what I
was trying to do, even though I couldn't articulate it clearly.

Best regards,
Mark


On Fri, Jun 5, 2009 at 9:16 AM, David Carlisle<davidc@xxxxxxxxx> wrote:
>
>
>> I'm trying to determine whether no instance of <c/> exists for each
>> <b/> set.
>
> what do you actually mean by this
>
> test="not(b/c)"
>
> is true if there are no c grandcildren.
>
> If you mean that you want the test to be true unless
> that every b child has a c child then that's
> not the case taht there is a b that has not got a c so:
>
> test="not(b[not(c)])"
>
>
> David
>
> ________________________________________________________________________
> The Numerical Algorithms Group Ltd is a company registered in England
> and Wales with company number 1249803. The registered office is:
> Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.
>
> This e-mail has been scanned for all viruses by Star. The service is
> powered by MessageLabs.
> ________________________________________________________________________

Current Thread