xsl-list
[Top] [All Lists]

RE: [xsl] Entry not outputting anything - Blank.

2008-03-28 03:37:20
I think you were already told that

<xsl:with-param name="value"/>

is wrong: it should be

<xsl:with-param name="value" select="$value/>

Michael Kay
http://www.saxonica.com/ 

-----Original Message-----
From: Z W [mailto:mpc8250(_at_)gmail(_dot_)com] 
Sent: 28 March 2008 01:13
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] 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/*[attribu
te::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>

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>