This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: foreign characters in params passed to stylesheet


An XSLT processor is at liberty to use character references for any
character in the output file, rather than using the native character.
There's nothing in the spec that prevents this, and any XML parser (or HTML
user agent) will treat the character reference and the native character
identically. The only difference is when you want to edit the file, in which
case it's annoying to have the character reference for characters that you
can display correctly on your screen, and it's annoying to have the native
character for those that you can't. Unfortunately the XSLT processor knows
nothing about your text editor or installed fonts, so it has to make a
guess. Saxon includes extensions that give you a choice.

Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com

> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Mattias
> Konradsson
> Sent: 06 May 2002 15:12
> To: XSL-List@lists.mulberrytech.com
> Subject: [xsl] foreign characters in params passed to stylesheet
>
>
> I have a problem, when passing parameters to a stylesheet
> using Sablotron
> running on Apache it seems to translate all foreign characters to
> entityreferences, passing "mattiaså"  by doing something
> liken this:
>
>  $xslt_params["test"] =  "mattiaså";
>   $result = xslt_process($xh, $xmlUrl,
> $xslUrl,null,null,$xslt_params);
>
> writes out as "mattias&#0" from the stylesheet <xsl:value-of
> select="$test"/>
> Anyone know what to do about this? Any help greatly appreciated
>
> Best Regards
> ---
> Mattias Konradsson
>
>
>
>
>
>
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]