[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: foreign characters in params passed to stylesheet

Subject: RE: foreign characters in params passed to stylesheet
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Mon, 6 May 2002 21:35:59 +0100
mailto subject using native characters
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:  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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.