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"
indent="yes"
encoding="UTF-8"
media-type="text/html"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";
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
 :
 :  [EMAIL PROTECTED]
 :  mmoulton66    | aim
 :  602.340.9440 | ofc
 :  602.432.2568 | cel
 :  602.340.1003 | fax
 :
 :  meltmedia.com



-------------------------------------------------------
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.
http://productguide.itmanagersjournal.com/
[INVALID FOOTER]

Reply via email to