Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6240205
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T11:31:32+00:00 2026-05-24T11:31:32+00:00

I have a project that I’m working that uses XSLT to display data from

  • 0

I have a project that I’m working that uses XSLT to display data from the db (db2). I’m making some variables like…..

<xsl:variable name="RatePerLoadedMiles1">
    <xsl:call-template name="ratePerLoadedMiles">
        <xsl:with-param name="summaryRow" select="$SummaryRow1" />
        <xsl:with-param name="numerator" select="$OperatingExpense1"/>
    </xsl:call-template>
</xsl:variable>

Now the template is stored in an existing and functioning xslt file that simply stores templates for reuse.

My question is… When I call the variable $RatePerLoadedMiles1 am I getting a value return or the content of whats between the <xsl:variable> and </xsl:variable>? So if I pass it values that evaluate to 5. Will I now have 5 stored or will I have the contents of the variable tag that will evaluate to 5 each time. I’m less concerned with the error message it’s simply provided because it was request. My main concern is to the question above.

If it matters I’m calling the variable like….

<td class="rightAligned">
    <xsl:copy-of select="$RatePerLoadedMiles1" />
</td>

and I’m also using it do some additional calculations with….

<td class="rightAligned"><!-- RPLM -->
    <xsl:call-template name="formatAsPercent">
        <xsl:with-param name="numberToFormat">
            <xsl:call-template name="divideNumbers">
                <xsl:with-param name="numerator" select="$RatePerLoadedMiles1 + 
                                                         $RatePerLoadedMilesBefore + 
                                                         $RatePerLoadedMilesAfter" />
                <xsl:with-param name="denominator" select="3" />
            </xsl:call-template>
        </xsl:with-param>
    </xsl:call-template>
</td>

The output is from the browser…

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64;
Trident/4.0; EasyBits GO v1.0; SLCC2; .NET CLR 2.0.50727; .NET CLR
3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; MDDR;
FDM) Timestamp: Tue, 9 Aug 2011 14:24:01 UTC

Message: A reference to variable or parameter ‘RatePerLoadedMiles’
cannot be resolved. The variable or parameter may not be defined, or
it may not be in scope.

Line: 1385 Char: 2 Code: 0 URI:
http://costanalysis:13000/costAnalysis/protected/javascript/xWireClientFull.jsb

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T11:31:33+00:00Added an answer on May 24, 2026 at 11:31 am

    The answer to your question is that the variable RatePerLoadedMiles1 stores the value 5 (as an RTF, as @Michael Kay described). It is not re-evaluated when $RatePerLoadedMiles1 is referenced.

    If it is giving you the error message you posted, then you apparently forgot the 1 on the end when referencing it somewhere, because the error message says RatePerLoadedMiles.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a project that involves recording data from a device directly into a
I have project that I'm working on that is going to require a webserver.
I have a project that I'm currently working on but it currently only supports
I have a project that I would like to start beta testing soon, it
I have a project that I'm working on and I need to be able
I have a project that uses the moodle library. I had to change the
I have a project that uses SystemConfiguration.Framework. I've been using xcode, where adding the
I have a project that I am working on that references a Common Library
I have a project that I'm upgrading from 2008 to 2010. My problem is
I have Midas project that uses a TDataSetProvider in one of RemoteDataModules in the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.