[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

How can the encoding of form data be specified in XML

Subject: 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
input type encoding
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?

Carsten

P.S:
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="145.253.157.10" /> </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" /> 
</HEAD> 
- <body  style="background:#e0e0e0"> 
<strong>Gateway user edit</strong> 
- <DIV id="listing"> 
<xsl:apply-templates select="show" /> 
</DIV> 
</body> 
</html> 
</xsl:template> 
- <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" /> 
</xsl:attribute> 
</input> 
- <input name="h323"> 
- <xsl:attribute name="value"> 
<xsl:value-of select="//show/user/@h323" /> 
</xsl:attribute> 
</input> 
- <input name="e164"> 
- <xsl:attribute name="value"> 
<xsl:value-of select="//show/user/@e164" /> 
</xsl:attribute> 
</input> 
<input type="submit" name="op" value="OK" /> 
<input type="submit" name="op" value="Remove" /> 
<input type="submit" name="op" value="Cancel" /> 
</form> 
</xsl:template> 
</xsl:stylesheet>



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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.