[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: for-each issue

Subject: Re: for-each issue
From: Ronan Klyne <ronan.klyne@xxxxxxxxxxx>
Date: Thu, 27 Mar 2008 16:23:06 +0000
Re:  for-each issue
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.