How to change xml encoding to iso-8859-1 using xslt

Here should go questions about transforming XML with XSLT and FOP.
matthew.wicks
Posts: 1
Joined: Fri Mar 03, 2006 4:37 pm

How to change xml encoding to iso-8859-1 using xslt

Post by matthew.wicks » Fri Mar 03, 2006 4:42 pm

I would like to be able to change the xml encoding value of the output of my style sheet from "UTF-8" to "iso-8859-1". I have tried changing the header of the xsl sheet and the source xml sheet but all output seems to be in UTF-8 format.

I need to be able to accept multiple encodings then with the style sheet change the encodings to "iso-8859-1"

Thanks,
Matthew

sorin_ristache
Posts: 4144
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache » Mon Mar 06, 2006 3:04 pm

Hello,

Use

Code: Select all

<xsl:output encoding="ISO-8859-1"/>

in your stylesheet.

Regards,
Sorin

Post Reply