I have written an XML file (test.xml) and an XSLT stylesheet for WML 9test-wml.xsl). I am trying to combine them with Cocoon. While using the Nokia WAP Tollkit 2.0 to load the test.xml file I get the error message "Error. Server returned unsupported content type: text/html" Can anybody help me? I have to say that I am running the Apache web server and I have configured it with all the relevant MIME types.
Created May 4, 2012
Dieter Wimberger The header of your XML file has to contain
following lines:
The XSL file
<?xml-stylesheet href="9test-wml.xsl" type="text/xsl" media="wap"?> <?cocoon-process type="xslt"?>
The XSL file
9test-wml.xsl
should have a line stating:
<xsl:processing-instruction name="cocoon-format">type="text/wml"</xsl:processing-instruction>in the main template that matches the root element of your XML document.