You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Roman Mario Xerxes Rometsch <xe...@mathematik.uni-ulm.de> on 2005/12/16 12:56:41 UTC

Static HTML Exporter and german "Umlaute"

Hi,
i'm using lenya 1.2.4 and the Static HTML Exporter. Everything works fine
except that characters like "ä (in my page2xhtml.xsl coded as "&#228")
are transformed to À and tabs to Â.

Has anyone an idea where i can change this? (lenya runs on an linux box)

greetings

Mario Rometsch

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Static HTML Exporter and german "Umlaute"

Posted by Roman Mario Xerxes Rometsch <xe...@mathematik.uni-ulm.de>.
On Fri, 16 Dec 2005, Atanas Alexandrov wrote:

> try with "&#228;"**
>
>
> Roman Mario Xerxes Rometsch schrieb:
>
> >Hi,
> >i'm using lenya 1.2.4 and the Static HTML Exporter. Everything works fine
> >except that characters like "ä (in my page2xhtml.xsl coded as "&#228")
> >are transformed to Ã?â?¬ and tabs to Ã?.
> >
> >Has anyone an idea where i can change this? (lenya runs on an linux box)
> >
> >greetings
> >
> >Mario Rometsch
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> >For additional commands, e-mail: user-help@lenya.apache.org
> >
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
>
>
Hi Atanas,
that doesn't solve the problem. Maybe you see something in the
correspondig files:

page2xhtml.de:

<?xml version="1.0" encoding="UTF-8" ?>
<!--
  Copyright 1999-2004 The Apache Software Foundation

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->

<!-- $Id: page2xhtml.xsl 170255 2005-05-15 19:58:26Z gregor $ -->

<xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns="http://www.w3.org/1999/xhtml"
    xmlns:xhtml="http://www.w3.org/1999/xhtml"
    xmlns:page="http://apache.org/cocoon/lenya/cms-page/1.0"
    xmlns:lenya="http://apache.org/cocoon/lenya/page-envelope/1.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:dcterms="http://purl.org/dc/terms/"
    xmlns:i18n="http://apache.org/cocoon/i18n/2.1"
    exclude-result-prefixes="page xhtml"
>

<!-- {context-prefix}/{publication-id}/{area} -->
<xsl:param name="root"/>
<xsl:param name="document-id"/>
<xsl:param name="raw"/>
<!-- i.e. doctypes/xhtml-document -->
<xsl:param name="document-type"/>
<!-- The request url i.e. /lenya/doctypes/xhtml-document_en.html -->
<xsl:param name="url"/>
<!-- The chosen language -->
<xsl:param name="language"/>
<!-- All available languages for the specific page in a comma-separated
list -->
<xsl:param name="languages"/>


<xsl:template match="cmsbody">
  <html>
    <head>
      <link rel="stylesheet" href="css/screen.css" type="text/css"
media="screen"/>
      <link rel="stylesheet" href="css/print.css" type="text/css"
media="print"/>
      <link rel="stylesheet" href="css/tty.css" type="text/css"
media="tty"/>
      <link rel="stylesheet" href="css/handheld.css" type="text/css"
media="handheld"/>
      <meta content="Apache Lenya" name="generator"/>
      <meta http-equiv="Content-Type" content="application/xhtml+xml;
charset=UTF-8"/>
      <!-- IMPORTANT!! do not use short script tag, because the page gets
messed up in ie otherwise... -->
      <script src="javascript/layout.js" type="text/javascript">
        /* dummy for MSIE, maybe use for firefox svg img */
      </script>
      <title><xsl:value-of select="//lenya:meta/dc:title"/></title>
    </head>
    <body onload="correct_layout()">
      <div id="page">
        <div id="top_section">
          <xsl:choose>
            <xsl:when test="$language = 'de'">
              <img src="images/unilogo.png" id ="unilogo" alt="Logo der
Universität Ulm"/>
              <a class="title" href="http://www.uni-ulm.de" hreflang="de">
                Universit&#228;t Ulm
              </a>
              <a class="subtitle" href="http://www.mathematik.uni-ulm.de"
hreflang="de">
                Fakult&#228;t f&#252;r Mathematik und
Wirtschaftswissenschaften
              </a>
              <img src="images/gebhe22.png" id ="geb"
alt="Helmholtzstrasse 22"/>
            </xsl:when>
            <xsl:otherwise>
              <img src="images/unilogo.png" id ="unilogo" alt="logo of the
university of ulm"/>
              <a class="title" href="http://www.uni-ulm.de" hreflang="de">
                University of Ulm
              </a>
              <a class="subtitle" href="http://www.mathematik.uni-ulm.de"
hreflang="de">
                Faculty of Mathematics and Economics
              </a>
              <img src="images/gebhe22.png" id ="geb" alt="Helmholtzstreet
22"/>
            </xsl:otherwise>
          </xsl:choose>
        </div>


and the static file index.html:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html><head><link media="screen" type="text/css" href="css/screen.css"
rel="stylesheet" /><link media="print" type="text/css"
href="css/print.css" rel="stylesheet" /><link media="tty" type="text/css"
href="css/tty.css" rel="stylesheet" /><link media="handheld"
type="text/css" href="css/handheld.css" rel="stylesheet" /><meta
name="generator" content="Apache Lenya" /><meta
content="application/xhtml+xml; charset=UTF-8" http-equiv="Content-Type"
/><script type="text/javascript" src="javascript/layout.js">
        /* dummy for MSIE, maybe use for firefox svg img */
      </script><title>Willkommen beim GK1100</title></head><body
onload="correct_layout()"><div id="page"><div id="top_section"><img
alt="Logo der UniversitÀt Ulm" id="unilogo" src="images/unilogo.png"
/><a hreflang="de" href="http://www.uni-ulm.de" class="title">
                UniversitÀt Ulm
              </a><a hreflang="de" href="http://www.mathematik.uni-ulm.de"
class="subtitle">
                FakultÀt fÌr Mathematik und
Wirtschaftswissenschaften
              </a><img alt="Helmholtzstrasse 22" id="geb"
src="images/gebhe22.png" />


thanks in advance

Mario Rometsch

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Static HTML Exporter and german "Umlaute"

Posted by Atanas Alexandrov <bs...@studserv.uni-leipzig.de>.
try with "&#228;"**


Roman Mario Xerxes Rometsch schrieb:

>Hi,
>i'm using lenya 1.2.4 and the Static HTML Exporter. Everything works fine
>except that characters like "ä (in my page2xhtml.xsl coded as "&#228")
>are transformed to À and tabs to Â.
>
>Has anyone an idea where i can change this? (lenya runs on an linux box)
>
>greetings
>
>Mario Rometsch
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>For additional commands, e-mail: user-help@lenya.apache.org
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org