This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
How generate encoding="ISO-8859-1" in the XML output?
- To: xsl-list at lists dot mulberrytech dot com
- Subject: [xsl] How generate encoding="ISO-8859-1" in the XML output?
- From: Cristobal Galiano Fernandez <c dot galiano at ua dot es>
- Date: Wed, 09 May 2001 18:51:45 +0200
- Organization: Universidad de Alicante
- References: <20010509155916.39378.qmail@web12602.mail.yahoo.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi all!
Can any body tell me how cal generate <?xml version="1.0"
encoding="ISO-8859-1"?> in the XML output
because MSXML generates <?xml version="1.0" encoding="UTF-16"?> discard
the sentence
<xsl:output method="xml" indent="yes" encoding="ISO-8859-1" />?
The only way I've found is
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xsl:exclude-result-prefixes="user" >
<xsl:output method="xml" indent="yes" omit-xml-declaration="yes" />
<xsl:template match="/">
<!-- Unica forma que he encontrado de generar
"encoding="ISO-8859-1'" -->
<xsl:text disable-output-escaping='yes'><?xml version="1.0"
encoding="ISO-8859-1"?></xsl:text>
<Valores>
<Valor>Valor devuelto por función F1(): <xsl:value-of
select="user:F1(string(//URL))" /></Valor>
<Valor>Valor devuelto por función F2(): <xsl:value-of
select="user:F2(2222)" /></Valor>
</Valores>
</xsl:template>
</xsl:stylesheet>
Thanks in advance
Cristóbal
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list