Can't fill in forms when parsing xml for second time
[email protected] (Jim McNeill)
| Newsgroups | gmane.comp.mozilla.devel.layout.xslt |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <[email protected]> |
I'm having an odd error while trying to fill in a form in Firefox
(Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5)
Gecko/20041107 Firefox/1.0). I'm producing some xml with a processing
instruction using mod_python in Apache. The first time I fill in the
form I have no problems. When I return it to the browser again
however, I can't fill in the fields any more! (Needless to say it
works fine in IE6).
The xml is:
<?xml version="1.0" ?>
<?xml-stylesheet type="text/xsl" href="htpasswd.xsl"?>
<response stage="thisstage"/>
xsl is:
<?xml version="1.0"?>
<xsl:stylesheet version="1.1"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"
version="1.0"
encoding="utf-8"
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
indent="yes"/>
<xsl:template match="/">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"
/>
<title>HTPASSWD util for Chad</title>
<link rel="stylesheet" type="text/css" href="htpasswd.css" />
</head>
<body>
<form action="htpasswd.py" method="post">
<div class="formline">
<label for="username">Username: </label>
<input type="text" id="username" name="username"
maxlength="30" size="20"></input>
</div>
<div class="formline">
<label for="pwold">Password: </label>
<input type="password" id="pwold" name="pwold" maxlength="30"
size="20"></input>
</div>
<div class="formline">
<label for="pwnew">New Password: </label>
<input type="password" id="pwnew" name="pwnew" maxlength="30"
size="20"></input>
</div>
<div class="formline">
<label for="pwnewchk">New Password (confirm): </label>
<input type="password" id="pwnewchk" name="pwnewchk"
maxlength="30" size="20"></input>
</div>
<div id="submit">
<button type="submit" name="submit">SUBMIT</button>
</div>
<input type="hidden" id="stage" name="stage"><xsl:value-of
select="/response/@stage" /></input>
</form>
</body>
</html></xsl:template>
</xsl:stylesheet>
Any help appreciated.