Re: [xsl] foreign characters in params passed to stylesheet

Subject: Re: [xsl] foreign characters in params passed to stylesheet
From: Mathy V Arumugam <mathy.v.arumugam@xxxxxxxxxxxx>
Date: Mon, 06 May 2002 13:45:58 -0700
Hi Mike,

>Saxon includes extensions that give you a choice.
I am experiencing similar problem.  Will you be able to provide us with an
example on Saxon on how it can be achieved?

Thanks
Mathy

Michael Kay wrote:

> 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@xxxxxxxxxxxx
> work: Michael.Kay@xxxxxxxxxxxxxx
>
> > -----Original Message-----
> > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Mattias
> > Konradsson
> > Sent: 06 May 2002 15:12
> > To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
> > 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


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


Current Thread