<xsl:output method=âxhtmlâ> crashes Tomcat
Hi. Every one
I am using Tomcat 4.0 web server to develop a web application. I need to use an xslt stylesheet to transform an xml document to an xhtml doc. However when I use <xsl:output method=âhtmlâ> the application is running ok but when I switch to <xsl:output method=âxhtmlâ> Tomcat is crashed and displayed the following error message:
ERROR: 'jndi:/localhost/WEB-INF/classes/xslt/producehtml.xslt: line 9:
the method attribute of an <xsl:output> element had the value 'xhtml'. the value must be one of xml, html, text, or qname-but-not-ncname'
FATAL ERROR: 'Could not compile stylesheet'
Here is the header of my xslt stylesheet file:
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml">
<xsl:output method="xhtml" indent="yes" encoding="iso-8859-1"
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
omit-xml-declaration="yes"/>
so, if you got any clue please help
your help is much appreciated
|