|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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@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�" 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








