Hi:
I am having difficulty getting the omit-meta-tag extension attribute
from the Saxon processor to be honored.
I am using the following version of Saxon:
Vendor: SAXON 7.6.5 from Michael Kay
Vendor URL: http://saxon.sf.net/
I have also tested with Saxon 6.5.2, with the same results. In both
cases, the output contains a meta tag.
Here is my input document:
<html>
<head>
<title>Test</title>
</head>
Content
</html>
And my stylesheet:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:saxon="http://saxon.sf.net/"
extension-element-prefixes="saxon"
version="1.0"
>
<xsl:output method="html" saxon:omit-meta-tag="yes"/>
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
I invoke the saxon processor as follows:
java -classpath ~/lib/saxon7.jar:${CLASSPATH} net.sf.saxon.Transform
test.xml simple.xsl
The output is:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=UTF-8">
<title>Test</title>
</head>
Content
</html>
Any help would be greatly appreciated!
Ryan
Ryan McFall
Dept. of Computer Science
Hope College
Holland, MI 49423
email: mcfall(_at_)hope(_dot_)edu Phone: (616) 395-7952
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list