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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:35:53+00:00 2026-05-24T21:35:53+00:00

I have an XSL template: <meta name=description content={$page-description}/> and a variable: <xsl:variable name=page-description> <xsl:choose>

  • 0

I have an XSL template:

    <meta name="description" content="{$page-description}"/>

and a variable:

<xsl:variable name="page-description">
<xsl:choose>
    <xsl:when test="$current-page = 'home'">
            <xsl:text>Lots of umlauts äöü</xsl:text>
    </xsl:when>                             
    <xsl:otherwise>
           ...
            </xsl:otherwise>
     </xsl:choose>
</xsl:variable>

However, it seems that umlauts are not allowed in XLS attributes?

Because instead of what I really want I am getting this:

Lots of umlauts &#xE4;&#xF6;&#xFC;

How can this be fixed?

  • 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-24T21:35:54+00:00Added an answer on May 24, 2026 at 9:35 pm

    Can’t repro this. The following transformation:

    <xsl:stylesheet version="1.0"
     xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
     <xsl:output omit-xml-declaration="yes" indent="yes"/>
    
     <xsl:variable name="vTest">Lots of umlauts äöü</xsl:variable>
    
     <xsl:template match="/">
       <meta name="description" content="{$vTest}"/>
     </xsl:template>
    </xsl:stylesheet>
    

    when run with any of the following XSLT processors: MSXML3, MSXML4, MSXML6, Saxon 6.1.4, Saxon9.1.7,
    AltovaXML (XML-SPY), .NET XslCompiledTransform, .NET XslTransform, produces exactly the same output:

    <meta name="description" content="Lots of umlauts äöü"/>
    

    Possible solution:

    1. In your <xsl:output> instruction don’t use any other value for the encoding attribute except utf-8. Try with: <xsl:output encoding="utf-8"/>

    2. In case that additional serialization (XmlWriter, TextWriter, …, etc.) of the result is used, make sure that the encoding specified for this additional serialization is utf-8

    3. Make sure that the tool that you are viewing the results with uses encoding utf-8 and its default font has proper representation for the special characters (for example, the font named Arial Unicode MS has a proper representation for most unicode characters).

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

Sidebar

Related Questions

I have the following xslt template: <xsl:template name=with-newlines> <xsl:param name=text /> <fo:block linefeed-treatment=preserve white-space-collapse=false
I have a standard meta tag like this: <meta name=desc content=test/> That I want
All, I have the below XSLT <xsl:template name=loop> <xsl:param name=count select=1/> <xsl:if test=$count >
I have this XSLT: <xsl:strip-space elements=* /> <xsl:template match=math> <img class=math> <xsl:attribute name=src>http://latex.codecogs.com/gif.latex?<xsl:value-of select=text()
I have the following XSL template (I omitted the template for Organization, let me
I have a xml that looks like below <xsl:template match=//xml> <xsl:for-each select=//z:row> <ul class
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 have an XSL template that is selected for execution (below). What I would
I have a template: <xsl:template match=paragraph> ... </xsl:template> I call it: <xsl:apply-templates select=paragraph/> For

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.