You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2002/08/27 23:00:03 UTC
DO NOT REPLY [Bug 12104] New: -
XSLTC generates incorrect media-type with HTML output
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12104>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12104
XSLTC generates incorrect media-type with HTML output
Summary: XSLTC generates incorrect media-type with HTML output
Product: XalanJ2
Version: 2.3
Platform: PC
OS/Version: AIX
Status: NEW
Severity: Normal
Priority: Other
Component: Xalan-Xsltc
AssignedTo: xalan-dev@xml.apache.org
ReportedBy: derek.sayeau@cognos.com
According to the XSLT 1.0 spec when <xsl:output method="html"/> is specified,
the default media-type should be "text/html". However when running the below
stylesheet:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" version="1.0" encoding="UTF-8"/>
<xsl:template match="/">
<html>
<head/>
</html>
</xsl:template>
</xsl:stylesheet>
The following is generated:
<html>
<head><meta http-equiv="Content-Type" content="text/xml; charset=UTF-8">
</head>
</html>
The "text/xml" should be "text/html".