[Home] [By Thread] [By Date] [Recent Entries]
Ming wrote:
I'm using java servlet to display a xml file using XSLT. I need to set the media type to a specific one. So, I use setContentType in my Java Servlet and use <xsl:output method="text" media-type="application/x-research-info-systems"/>. There are three output methods: xml (default), html, text. If you are producing HTML, use html, if you are producing XML, use XML. Use text otherwise. I'm sure you know what you are producing? BTW setting a media type in a style sheet which is processed by an processor you've embedded yourself does not have any effect in itself, see below. But I still need to set a header, provider=LAN which a required header element. I can use the setHeader in my java servlet. But I don't know how to do this in XSLT.
J.Pietschmann XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|

Cart



