cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From skoech...@n-soft.com (Sebastien Koechlin I-VISION)
Subject Re: character encoding
Date Tue, 23 May 2000 10:17:55 GMT
Rafael Oropeza wrote:
> 
> Try with the equivalent numeric format for entities
> For example:
> 
>   is  
> < is <
> and so on

It's not a problem about input into Cocoon, but a
wml output problem, a Cocoon bug.

Cocoon should not send <?xml ... encoding="UTF-8"?> and print
every characters using iso-8859-1 charset (or other).

Adding
	formatter.text/wml.encoding = something
into cocoon.properties solve the problem.

...but...

I can not change encoding in my stylesheet,

I wrote this:
-------------------------------------------------------------
<?xml version="1.0" encoding="iso-8859-1"?>

<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:output method="xml" encoding="ISO-8859-2"/>

<xsl:template match="page">
        <xsl:processing-instruction
	name="cocoon-format">type="text/xml"</xsl:processing-instruction>
        <something>
                <xsl:apply-templates/>
        </something>
</xsl:template>

</xsl:stylesheet>
----------------------------------------------------------------

but Cocoon does not produce iso-8859-2, it send:
	<?xml version="1.0" encoding="UTF-8"?>

Same for WML (but WML is XML).

Does <xsl:output/> works ? And how ?

-- 
S├ębastien Koechlin

Mime
View raw message