[Mod_transform] Apache warning: [mod_transform: Warning, no content type was set! Fix your XSLT!] - what does this mean?

perry.tew at cibavision.com perry.tew at cibavision.com
Sat Aug 6 15:00:15 EST 2005

  Nice module.  I just installed it.  Thanks for writing it.   I received 
the following warning in my apache log when testing out the module.  The 
transformation was successful.

mod_transform: Warning, no content type was set! Fix your XSLT!

Can you elaborate on how I can fix my xslt?  I'm not sure what I should 
put into my xslt file.  I added a meta tag specifying a content tag of 
text/html, but that didn't work and was stripped out and replaced by the 

I used the cdcatalog example from www.w3schools.com (xsl tutorial) as my 

Here is my apache configuration, in case the problem is there.
<VirtualHost _default_:5035>

AddOutputFilter XSLT xml

<Directory "/web/devel/tewpe1/intranet/apache/htdocs/xmltest">
        TransformOptions +ApacheFS
        TransformSet /xmltest/cdcatalog.xsl


Also, the url for my test is 
so, Firefox is treating like an xml document (the content-type is also 
Do you have any strategy for getting Firefox to process it as an html 
document?  I noticed that the outoforder.cc web site used directories for 
all urls, thus avoiding the problem of file extensions.  I thought about 
using mod_rewrite.  Not all files on the server are to be transformed, so 
I hesitate to change the mime type for the .xml extension.

At any rate, thanks for your time and effort.
Perry Tew

More information about the Mod_transform mailing list