Hello Jens, Thanks for your suggestions.
> map:generate creates a stream of sax events. No MIME content type can > be applied to this. The content type of the URLSource is actually > determined by the Web-Server according to the extension of the file > it sends. Actually URLSource looks up the HTTP-Header for the content-type (method: connection.getContentType). But it does so only to distinguish between HTML and XML Sources. > Looking at your sitemap example, might it be the case that you don't > want to determine the contenttype but the (XML) doctype of the > SAX stream ? No, it's really the contenttype (Mimetype) of the HTTP-Response I'm interested in. You suggest another way to achieve my goal. Unfortunately this solution doesn't account for resources without descriptive file-extensions. If I wanted to transform the document "wap.yahoo.de" it wouldn't work. slightly changed to express what I think you meant ;-) : <map:match pattern="**.wml"/> <map:generate src="{1}.wml" type="file" /> <map:transform src="wml2xhtml.xsl"/> <map:serialize type="xhtml" /> </map:generate> </map:match> <map:match pattern="**.chtml"/> <map:generate src="{1}.chtml" type="file" /> <map:transform src="chtml2xhtml.xsl"/> <map:serialize type="xhtml" /> </map:generate> </map:match> Greetings, Andreas --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>