[xsl] How can the encoding of form data be specified in XML/XSL

Subject: [xsl] How can the encoding of form data be specified in XML/XSL
From: "Carsten Bode" <CBode@xxxxxxxxxxxxxxx>
Date: Tue, 27 May 2003 20:29:46 +0200
Hello together.
We use XML/XSL in browser to generate some HTML data. XML and XSL uses ISO-8859-1 encoding. In some cases  HTML forms are generated, the form data is submited with an URL-encoded get to the server.

We found that IE browsers encode the formdata in UTF8 before its URL-encoded.
Gecko browser just send ISO-8859-1.

Is there a way to enforce a certain encoding of submitted data?


The (simplified) XML Data is:

<?xml version="1.0" encoding="ISO-8859-1" ?> 
<?xml-stylesheet type="text/xsl" href="something" ?> 
<show> <user cn="cb"  h323="cb" hw-id="4733,00077 0645537" reg="" /> </show>

The (simplified) XSL is:
<?xml version="1.0" encoding="ISO-8859-1" ?> 
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";> 
- <xsl:template match="/"> 
- <html> 
- <HEAD> 
<LINK rel="stylesheet" href="inno.css" type="text/css" /> 
- <body  style="background:#e0e0e0"> 
<strong>Gateway user edit</strong> 
- <DIV id="listing"> 
<xsl:apply-templates select="show" /> 
- <xsl:template match="show"> 
- <form action="filterform.htm"> 
<input type="hidden" name="redirect" value="/close.htm" /> 
<input type="hidden" name="t" value="Dect" /> 
- <input name="cn"> 
- <xsl:attribute name="value"> 
<xsl:value-of select="//show/user/@cn" /> 
- <input name="h323"> 
- <xsl:attribute name="value"> 
<xsl:value-of select="//show/user/@h323" /> 
- <input name="e164"> 
- <xsl:attribute name="value"> 
<xsl:value-of select="//show/user/@e164" /> 
<input type="submit" name="op" value="OK" /> 
<input type="submit" name="op" value="Remove" /> 
<input type="submit" name="op" value="Cancel" /> 

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread