xsl-list
[Top] [All Lists]

special charracters in stylesheet parameter - again

2005-01-26 03:14:03
Hi.

I am using XalanC(_at_)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 á 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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>