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

  • Home
  • SEARCH
  • 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 6880599
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:59:41+00:00 2026-05-27T04:59:41+00:00

1)I have an XML file with the structure that I don’t want really change.

  • 0

1)I have an XML file with the structure that I don’t want really change.

I’m using xslt to show my xml as html.

But I have some text on html-form depending on language, that is declared in xml. So I should dynamically choose the right language and depending on it show the right text.

Is it possible to declare constants in xslt and then choose the right one?

2)And another question.
I have

<meta http-equiv="Content-Type" content="text/html; charset=mycharSet" />

where mycharset is

<xsl:value-of select="root/CHARACTER_SET"/>

How can I insert this to meta tag?

  • 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-27T04:59:41+00:00Added an answer on May 27, 2026 at 4:59 am

    Within the XSLT stylesheet declare global parameters e.g. :

    <xsl:param name="lang"/>
    

    or in xslt 2.0

    <xsl:param name="lang" required="yes" as="xs:string"/> etc..
    ..

    Then when calling your xslt pass the corresponding parameter and change the “text” depending on the value of the parameter :

    <xsl:choose>
      <xsl:when test="$lang = 'English'"> ... 
    

    Hope it helps.

    Edit:

    Regarding your second question :

    <xsl:variable name="charSet" select="root/CHARACTER_SET"/>
    <meta http-equiv="Content-Type" content="text/html; charset={$charSet}" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an XML file format that contains a structure of questions: <question id=q101>
I have an XML file that I want to send out for translations. this
I have an xml document that holds the navigation structure for an swf file.
I have constructed an XML tree structure of an XML file. I am able
I have a large xml file (approx. 10 MB) in following simple structure: <Errors>
If i have the following directory structure: Project1/bin/debug Project2/xml/file.xml I am trying to refer
What is the easiest way to convert xml to html? I have xml file
I have an XML file that starts like this: <Elements name=Entities xmlns=XS-GenerationToolElements> I'll have
I have an xml file providing data for a datagrid in Flex 2 that
I have an XML file with the following structure: <Products> <Product name=MyProduct1> <Components> <Component

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.