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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:08:39+00:00 2026-05-26T12:08:39+00:00

In my XSL i have included a dropdown box which have values like, one

  • 0

In my XSL i have included a dropdown box which have values like,

one
two
three
four
five

If I select the value “one”, then the template “one” should be applied.

<xsl:template match="one">
     <!-- code goes here -->
</xsl:template>

like wise two, three four and five should match their appropriate templates.
Is it possible using Javascript, so that onchange() method can get the selected value and call its own template.

If there is any other way, please suggest me.

Thanks,
jeyaa

  • 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-26T12:08:40+00:00Added an answer on May 26, 2026 at 12:08 pm

    That’s not the way client-side XSLT currently works. The XSLT is executed to generate (HTML + Javascript), and by the time any user interaction occurs, the XSLT has finished its job. I’m trying to change that model with Saxon-CE, but that’s in the future.

    For the moment, the best that you can do is catch the event in Javascript, and have the Javascript invoke a new XSLT stylesheet transformation.

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

Sidebar

Related Questions

I have two nested loop in XSL like this, at this moment I use
I have an xsl:fo style sheet that refers to a URL which is an
I have an XSL style sheet for which I need to add some custom
I have an XSL stylesheet (A) that imports another one (B). A overrides a
I have a xsl:variable ($features-list) specified in my XSL which contains a tree fragment
If have a big 'xsl:choose' chunk in which I need to set a number
I'd like to optimize the XSL transform below. I've included sample input data and
Say I have an XML file which looks like this: <?xml version=1.0 encoding=UTF-8?> <Project
I have an XSLT 1.0 stylesheet running using the XSL processor included with PHP
I have a XML file with code like <?xml version=1.0 encoding=UTF-8?> <?xml-stylesheet href=rss2.xsl type=text/xsl

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.