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

Entry not outputting anything - Blank.

Subject: Entry not outputting anything - Blank.
From: "Z W" <mpc8250@xxxxxxxxx>
Date: Thu, 27 Mar 2008 18:13:12 -0700
 Entry not outputting anything - Blank.
Hi Gurus

The transformation process went fine with these templates but for
unknown reason, it's not printing the decimal
values I am expecting. I'm not sure what I did wrong ?

Appreciate your time reading this.


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


	<xsl:template name="display-seconds">
		<xsl:param name="value" />
		<xsl:value-of select="format-number($value,'0')" />
	</xsl:template>



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

		<xsl:variable name="total_successes_cifo">
			<xsl:call-template name="cur_total_successes_cifo">
				<xsl:with-param name="value"/>
			</xsl:call-template>
		</xsl:variable>

		<xsl:variable name="total_time_cifo">
			<xsl:call-template name="cur_time_duration_cifo">				
				<xsl:with-param name="value"/>
			</xsl:call-template>
		</xsl:variable>

		<!-- xsl:value-of select="$total_successes_cifo div $total_time_cifo"/ -->

		<xsl:call-template name="display-seconds">
			<xsl:with-param name="value" select="$total_successes_cifo div
$total_time_cifo"/>
		</xsl:call-template>
				
	</xsl:template>




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

		<xsl:for-each
select="document($currentJTL_cifo)/testResults/*[not(@label =
preceding::*/@label)]">
			<xsl:variable name="label" select="@label" />


			<xsl:variable name="minTimeStamp_prev_2">
				<xsl:call-template name="find_minTimeStamp_prev_2">
					<xsl:with-param name="nodes" select="/testResults/sampleResult" />
				</xsl:call-template>
			</xsl:variable>

			<xsl:variable name="maxTimeStamp_prev_2">
				<xsl:call-template name="find_maxTimeStamp_prev_2">
					<xsl:with-param name="nodes" select="/testResults/sampleResult" />
				</xsl:call-template>
			</xsl:variable>

			<xsl:variable name="timeSpan" select="$maxTimeStamp_prev_2 -
$minTimeStamp_prev_2" />
			<xsl:if test="position() = last()">
				<xsl:call-template name="display-seconds">
					<xsl:with-param name="value" select="$timeSpan"/>
				</xsl:call-template>
			</xsl:if>

		</xsl:for-each>

		<xsl:value-of select="$value"/>
		
		
	</xsl:template>



	<xsl:template name="cur_total_successes_cifo">
		<xsl:param name="value"/>
		<xsl:variable name="count"
select="count(document($currentJTL_cifo)/testResults/*[attribute::label='Client
Up' and attribute::success='true'])" />
		<xsl:call-template name="display-number">
			<xsl:with-param name="value" select="$count"/>
		</xsl:call-template>
	</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.