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 14:25:26 -0600
Message-ID: <0B3166E96E083F4AA9BFAEC8D3B3E06B0F342A41@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>

Thaks once more!

    In our XSL:
this month: <xsl:value-of select="$em"/>

    We got in the generated HTML:
this month: dc (correct)

    In our XSL, we also need:
<xsl:element name="img">
    <xsl:attribute name="src" >
        ....?page=Legend=<xsl:value-of select="$em"/>&amp;chartinfo...."
    </xsl:attribute>      
</xsl:element>

    We got in HTML:
<img src="....&Legend=d%C3%A9c&chartinfo....>    (wrong)
Where "%C3" is a "", and "%A9" is a "". However we need a "%E9" instead of
"%C3%A9". Obviously, the character of "" can be correctly as text to disply
where it was incorrectly interpreted as two characters of "é" in the URL as
img's src.

    Thanks,

Gordon


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


Is the character appear correctly in the html output - if so your
problem may simply be the request going back to the server, you may need
to uuencode the string...

-----Original Message-----
From: Guo, Gordon (OTP-KC) [mailto:gordon_guo@dstoutput.com] 
Sent: 03 April 2003 20:49
To: 'Philip Fitzsimons'
Cc: 'www-xsl-fo@w3.org'; 'xmlschema-dev@w3.org'
Subject: RE: How to pass the right value by "xsl:value select=" to URL
in the generated HTML page


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

<html>
  <head>
    <META http-equiv="Content-Type" content="xml; charset=ISO-8859-1" /> 
..................
  </head>
..................
<html>

We got:
<html>
  <head>
    <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <META content="xml; charset=ISO-8859-1" http-equiv="Content-Type"> 
..................
  </head>
..................
<html>
Received on Thursday, 3 April 2003 15:21:09 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:36 GMT