W3C home > Mailing lists > Public > xmlschema-dev@w3.org > April 2003

RE: How to pass the right value by "xsl:value select=" to URL in the generated HTML page

From: Guo, Gordon (OTP-KC) <gordon_guo@dstoutput.com>
Date: Thu, 3 Apr 2003 13:48:31 -0600
Message-ID: <0B3166E96E083F4AA9BFAEC8D3B3E06B0F342A40@otcssex01001.output.net>
To: "'Philip Fitzsimons'" <pfitzsimons@tixel.co.uk>
Cc: "'www-xsl-fo@w3.org'" <www-xsl-fo@w3.org>, "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>

Hi Philip,
    Thank you very much for your suggestion. We tried in our XSL:

    <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"

We got:
    <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <META content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">

-----Original Message-----
From: Philip Fitzsimons [mailto:pfitzsimons@tixel.co.uk]
Sent: Thursday, April 03, 2003 1:27 PM
To: 'Guo, Gordon (OTP-KC)'
Subject: RE: How to pass the right value by "xsl:value select=" to URL
in the generated HTML page

Check your stylesheet and see if you are explicitly outputting the
<head> section.
often if you don't specify this but you xslt has <output type="html"/>
then it will default to creating it for you.

So your solution should be to add the head tag to your output.

Hope this helps.


-----Original Message-----
From: www-xsl-fo-request@w3.org [mailto:www-xsl-fo-request@w3.org] On
Behalf Of Guo, Gordon (OTP-KC)
Sent: 03 April 2003 20:19
To: 'www-xsl-fo@w3.org'
Subject: How to pass the right value by "xsl:value select=" to URL in
the generated HTML page

Hi all friends,
    We are using our XSL to generate a HTML page. In the generated page,
we have an URL to call us back.  In the URL, we need to pass some
parameters with France characters. These France characters are displayed
correctly in the page. However, the value of these characters passed
into URL are not right.

    Our XSL is something like:

<?xml version="1.0" encoding="ISO-8859-1" ?>
this month: <xsl:value-of select="$em"/>

<xsl:element name="img">
    <xsl:attribute name="src" >

    As mentioned above, the right value of "$em" (déc) is displayed for
"this month".  However, the wrong value of "$em" (déc) is passed into
img's src.
    We also noticed that the following line is always automatically
added into the generated HTML: 
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
    We tried many ways, with no success, to overweight it as: 
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    All your suggestions and advices are appreciated.

Received on Thursday, 3 April 2003 14:43:35 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:10 UTC