[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: "Z W" <mpc8250@xxxxxxxxx>
Date: Thu, 27 Mar 2008 08:09:55 -0700
Re:  for-each issue
Mukul

I'm not sure why template cur_count_cifo doesnt work but template
	<xsl:template name="cur_time_duration_cifo">
works fine with the same syntax as cur_count_cifo. I'm not sure what I do wrong
here.




			<td>

				<xsl:choose>
					<xsl:when test="number($value)=1">
						<xsl:call-template name="cur_time_duration_cifo">
							<xsl:with-param name="value"/>
						</xsl:call-template>
					</xsl:when>
					<xsl:when test="number($value)=2">
						<xsl:call-template name="cur_time_duration">
							<xsl:with-param name="value"/>
						</xsl:call-template>
					</xsl:when>

				</xsl:choose>
								
			</td>

				<td>
					<xsl:choose>
						<xsl:when test="number($value)=1">
							<!-- xsl:value-of select="$count" / -->							



							<xsl:call-template name="cur_count_cifo">
								<xsl:with-param name="value"/>
							</xsl:call-template>
						</xsl:when>
					</xsl:choose>


	<xsl:template name="cur_count_cifo">
		<xsl:param name="value"/>

		<!-- xsl:value-of select="$currentJTL_cifo"/ -->
		<xsl:for-each
select="document($currentJTL_cifo)/testResults/*[not(@label =
preceding::*/@label)]">
			<xsl:variable name="label" select="@label" />
			<xsl:variable name="count1"
select="count(document($currentJTL_cifo)/testResults/*[@label =
current()/@label][attribute::label='Client Init'])" />
			<xsl:value-of
select="document($currentJTL_cifo)/testResults/*[@label =
current()/@label][attribute::label='Client Init']"/>
		</xsl:for-each>
		<xsl:value-of select="$value"/>
		<!-- xsl:if test="position() = last()">
			<xsl:call-template name="display-number">
				<xsl:with-param name="value" select="$count1"/>
			</xsl:call-template>

		</xsl:if-->
			<!-- or xsl:value-of select="$timeSpan"/ -->

	</xsl:template>

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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

Buy Stylus Studio Now

Cast Your Vote

We need your help – Vote for DataDirect XML Products!

  • Best SOA or XML site

Winners and finalists announced at SOA World Conference in November.

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-2007 All Rights Reserved.