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 84083
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T21:52:30+00:00 2026-05-10T21:52:30+00:00

Basically I have a small template that looks like: <xsl:template name=templt> <xsl:param name=filter />

  • 0

Basically I have a small template that looks like:

<xsl:template name='templt'>     <xsl:param name='filter' />     <xsl:variable name='numOrders' select='count(ORDERS/ORDER[$filter])' /> </xsl:template> 

And I’m trying to call it using

<xsl:call-template name='templt'>     <xsl:with-param name='filter' select='PRICE &lt; 15' /> </xsl:call-template> 

Unfortunately it seems to evaluate it before the template is called (So effectively ‘false’ is being passed in) Enclosing it in quotes only makes it a string literal so that doesn’t work either. Does anybody know if what I’m trying to achive is possible? If so could you shed some light on it? Cheers

  • 1 1 Answer
  • 1 View
  • 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. 2026-05-10T21:52:31+00:00Added an answer on May 10, 2026 at 9:52 pm

    how about the following:

    <?xml version='1.0' encoding='utf-8'?> <xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>   <xsl:output method='xml' indent='yes'/>    <xsl:template name='templt'>     <xsl:param name='filterNodeName' />     <xsl:param name='filterValue' />     <xsl:variable name='orders' select='ORDERS/ORDER/child::*[name() = $filterNodeName and number(text()) &lt; $filterValue]' />     <xsl:for-each select='$orders'>       <xsl:value-of select='.'/>     </xsl:for-each>   </xsl:template>    <xsl:template match='/'>     <xsl:call-template name='templt'>       <xsl:with-param name='filterNodeName' select=''PRICE'' />       <xsl:with-param name='filterValue' select='15' />     </xsl:call-template>   </xsl:template> </xsl:stylesheet> 

    If you still want to use a single parameter only, you could tokenize in template ‘templt’ first.

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

Sidebar

Related Questions

I have this small piece of code that basically takes a list and runs
I basically have 7 select statements that I need to have the results output
Basically I have a small div that is initially styled to 60x60. I have
Similar to this question I have a small groovy test script that basically uses
I have a small project that basically a Python wrapper to a websites API.
I have small problem with Spring MVC. Basically what I'm trying to do is
I'm developing a small application using Blend, basically what I have in my application
I basically have a program that filters records from one excel file to another
I have a small quiz web application to deploy. Basically I have 2 pages,
I have a div that i want to apply two backgrounds to it. Basically

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.