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

for-each issue

Subject: for-each issue
From: "Z W" <mpc8250@xxxxxxxxx>
Date: Thu, 27 Mar 2008 00:52:20 -0700
 for-each issue
Hi

I have a xml input file that contains the following:


<sampleResult timeStamp="1191576904342" dataType="text"
threadName="9-1" label="Client responds " time="930"
responseMessage="OK" responseCode="200"
success="true"><assertionResult failureMessage="" error="false"
failure="false"/></sampleResult>
<sampleResult timeStamp="1191575818602" dataType="text"
threadName="-9" label="Notification Receiver" time="1087393"
responseMessage="" responseCode="" success="true"/>
<sampleResult timeStamp="1191575818631" dataType="text"
threadName="1-10" label="Notification Receiver" time="1087824"
responseMessage="" responseCode="" success="true"/>
<sampleResult timeStamp="1191576904770" dataType="text"
threadName="1-2" label="Client responds " time="1663"
responseMessage="OK" responseCode="200"
success="true"><assertionResult failureMessage="" error="false"
failure="false"/></sampleResult>
<sampleResult timeStamp="1191576907600" dataType="text"
threadName="1-4" label="Client sends " time="529" responseMessage="OK"
responseCode="200" success="true"><assertionResult failureMessage=""
error="false" failure="false"/></sampleResult>

I'm trying to create a html where I'm only interested in this
label=Client responds.
However I need to loop through all these rows to get other information.
How do I loop through them and store some values into variables and at
the same time not having XSLT complaining that
variables undefined if these variables are put inside the for-each
loop and made to print out outside of the for-each loop ?








Also,

 Warning! A variable with no following sibling instructions has no effect
What does this warning really imply ?

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.