No. That's not a problem. The output should be (and is for me):
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>USER::Add</title>
</head>
<body>
<h3>USER ADD</h3>
<div align="right">
<a href="/user/list.html">user list</a>
</div>
<hr />
<form action="/cgi-bin/process.pl" method="post">
<input type="hidden" name="xsl" value="user/instance.xsl" />
<input type="hidden" name="instance" value="true" />
<table>
<tr>
<td>username:</td>
<td><input type="text" name="username" /></td>
</tr>
<tr>
<td>password:</td>
<td><input type="password" name="password" /></td>
</tr>
<tr>
<td>re-type password:</td>
<td><input type="password" name="password-confirm" /></td>
</tr>
<tr>
<td>firstname:</td>
<td><input type="text" name="name.first" /></td>
</tr>
<tr>
<td>lastname:</td>
<td><input type="text" name="name.last" /></td>
</tr>
<tr>
<td><br /></td><td><input type="submit" value="OK" /></td>
</tr>
</table>
</form>
<hr />
</body>
</html>
-----
X-Original-To: dbibbens(_at_)xobjex(_dot_)com
Date: Sun, 30 Mar 2003 12:17:17 -0500
From: Gan Uesli Starling <alias(_at_)starling(_dot_)us>
User-Agent: Mozilla/5.0 (X11; U; NetBSD i386; en-US; rv:1.2.1) Gecko/20021224
X-Accept-Language: en-us, en
Content-Type: text/plain; charset=us-ascii; format=flowed
Sender: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Reply-To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
X-MailLoop: 1
Daniel Bibbens wrote:
Use <xsl:output .../> i.e.
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="xml"
media-type="text/html"
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
doctype-system="DTD/xhtml1-strict.dtd"
cdata-section-elements="script style"
indent="yes"
encoding="ISO-8859-1"/>
<xsl:template match="/">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>USER::Add</title>
</head>
<body>
<h3>USER ADD</h3>
<div align="right"><a href="/user/list.html">user list</a></div>
<hr/>
<form action="http://xobjex.com/cgi-bin/process.pl" method="post">
<input type="hidden" name="xsl" value="user/instance.xsl"/>
<input type="hidden" name="instance" value="true"/>
<table>
<tr>
<td>username:</td>
<td><input type="text" name="username"/></td>
</tr>
<tr>
<td>password:</td>
<td><input type="password" name="password"/></td>
</tr>
<tr>
<td>re-type password:</td>
<td><input type="password" name="password-confirm"/></td>
</tr>
<tr>
<td>firstname:</td>
<td><input type="text" name="name.first"/></td>
</tr>
<tr>
<td>lastname:</td>
<td><input type="text" name="name.last"/></td>
</tr>
<tr>
<td><br/></td>
<td><input type="submit" value="OK"/></td>
</tr>
</table>
</form>
<hr/>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
Um... I am outputting the XHTML as a file for uploading. So the
DOCTYPE declaration needs to go into that file. I needs to be
writtin ahead of the head, and actually be there in the output
XHTML file.
Is that a problem?
Thanks,
Gan
--
Mistera Sturno - Rarest Extinct Bird
<(+)__ Gan Uesli Starling
((__/)=- Kalamazoo, MI, USA
`||`
++ http://starling.us
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list