Re: [xsl] for-each issue

Subject: Re: [xsl] for-each issue
From: Ronan Klyne <ronan.klyne@xxxxxxxxxxx>
Date: Thu, 27 Mar 2008 16:23:06 +0000
Z W wrote:
David
Thanks for responding.
I'm new to XSLT
I'm still weak with XPath

Could you help explain why with this below, I get 0
count(document($currentJTL_cifo)/testResults/*[@label =
current()/@label][attribute::label='Client Init'])" />
while
count(document($currentJTL_cifota)/testResults/*[attribute::label='Client
Init'])" />
gives me the answer I want.

You have only given a sample of one input XML document, so I assume you only want to use one input document.
In this case I think your problem is that "$currentJTL_cifo" and "$currentJTL_cifota" are different documents.


# r

--
Ronan Klyne
Business Collaborator Developer
Tel: +44 01189 028518
ronan.klyne@xxxxxxxxxxx
www.groupbc.com

Current Thread