RE: How to pass the right value by "xsl:value select=" to URL in the generated HTML page
"Guo, Gordon (OTP-KC)" <[email protected]> Thu, 3 Apr 2003 14:25:26 -0600
| Newsgroups | gmane.text.xml.schema.devel,gmane.text.xml.xsl.general |
|---|---|
| Message-ID | <[email protected]> |
Thaks once more!
In our XSL:
this month: <xsl:value-of select="$em"/>
We got in the generated HTML:
this month: déc (correct)
In our XSL, we also need:
<xsl:element name="img">
<xsl:attribute name="src" >
....?page=Legend=<xsl:value-of select="$em"/>&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:[email protected]]
Sent: Thursday, April 03, 2003 1:48 PM
To: 'Guo, Gordon (OTP-KC)'
Cc: [email protected]; [email protected]
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:[email protected]]
Sent: 03 April 2003 20:49
To: 'Philip Fitzsimons'
Cc: '[email protected]'; '[email protected]'
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>