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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T11:01:47+00:00 2026-06-05T11:01:47+00:00

I have three working xsl files, now I simply want to make them work

  • 0

I have three working xsl files, now I simply want to make them work together.

Suppose my three xslt are cham1.xsl, cham2.xsl, cham3.xsl and my source input source.xml. In the top table node of the input, there is an attribute outputclass:

 <root outputclass="cham1">

What I want is how could I write another stylesheet, that whenever, the @outputclass is cham1, then call cham1.xsl, if @outputclass='cham2', then apply cham2.xsl on the source.

Wonder if this is feasible in xslt? Thanks!

  • 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-06-05T11:01:49+00:00Added an answer on June 5, 2026 at 11:01 am

    There are basically two approaches: doing this within XSLT (in a single transformation), or doing it externally.

    To do it within XSLT, the best way would be to ensure that the template rules in cham1.xsl, cham2.xsl, and cham3.xsl use different modes. The controlling code then simply needs to do apply-templates in the appropriate mode.

    Doing it outside XSLT rather depends on your application environment, e.g. whether you are controlling things from Java, from Ant, from XProc, or etc.

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

Sidebar

Related Questions

I have three JSF apps working on glassfish 3.1 opensource edition. One of them
We have three developers and one tester all working against the same database. We
Here's a tricky iPhone problem I've been working on. I have three UIScrollViews on
I'm working in OpenGL, with VBOs, and I have a set of three lines
I am working in Google Maps and have three+ tile overlays to create. An
I have a set of XML files that I am processing with an XSL
I'm working on a query wherein I have three tables to join, however the
I have got this strange problem.XSL is not working with xml.This is my xml
I have been working on a XSLT file here. I had been writing CSS
So, I am working with .NET. I have an XSL file, XslTransform object in

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.