[xsl] special charracters in stylesheet parameter - again

Subject: [xsl] special charracters in stylesheet parameter - again
From: Dusan Zatkovsky <zatkovsky@xxxxxxxxxxxx>
Date: Wed, 26 Jan 2005 11:14:03 +0100
Hi.

I am using XalanC@linux to do some transformations.
Output of this transformation is clear text in windows-1250 encoding.

I have a problem with special non-english characters in stylesheet parameter:

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
version="1.0">
	<xsl:param name="test"/>
	<xsl:output method="text" encoding="windows-1250"/>

	<xsl:template match="/">
		<xsl:value-of select="$test" disable-output-escaping="yes"/>
	</xsl:template>
</xsl:stylesheet>

Xalan -p test "'test &#225; test'" data.xml stylesheet.xsl produces
"test &#225; test" instead of "test a test".

When output is xml, no problem, because in next process, escapes will be
converted. But I need to disable escapes in this case.

Some hints?

Thanks.


--


Sincerely,
Dusan Zatkovsky

Current Thread