Recently I have had the need to change the content type of the final transform in an xslt view. There are many ways to do this, however I would like to propose an enhancement to the XSLTransform class that would allow the <xsl:output/> element's 'encoding' and 'media-type' properties to set the content type.

For example, this output element:

<xsl:output method="html"
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" />

would set the content type to 'text/html; charset=UTF-8'

Anyone see downsides to this approach?

-- Mike

 :  mike moulton
 :  meltmedia
 :  1429 north 1st street
 :  phoenix  az  85004
 :  mmoulton66    | aim
 :  602.340.9440 | ofc
 :  602.432.2568 | cel
 :  602.340.1003 | fax

SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.

Reply via email to