Forum Moderators: open
This works fine except the XSL throws an error if I insert the DOCTYPE, thus I've left it out and triggered Quirksmode in IE6.
Any ideas how I can get a doctype in their preferably XHTML 1.0 strict?
a watered-down version of the code I've used:
<?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 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<style type="text/css" media="screen, projection">
@import url("/recruitment/css/css.css");
</style>
<title>RSS</title>
<body>
<table>
<xsl:for-each select="rss/channel/item">
<xsl:sort select="pubDate" order="ascending"/>
<tr>
<td><a href="{link}" title="view this article in more detail"><xsl:value-of select="title"/></a></td>
<td><xsl:value-of select="substring(pubDate,5,12)"/></td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
<xsl:output
method="xml多tml宇ext好ame"
version="string"
encoding="string"
omit-xml-declaration="yes好o"
standalone="yes好o"
doctype-public="string"
doctype-system="string"
cdata-section-elements="namelist"
indent="yes好o"
media-type="string"/>