Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Easy way to change speciale characters into codes

From: "XSLNews" <news.san@-----.--->
To: NULL
Date: 10/5/2005 7:33:00 AM
Thanx
I did it this way

	<xsl:variable name=3D"oms" select=3D"translate(Pairs/Pair/AssignmentText,
'&#192;&#193;&#194;&#195;&#196;&#197;&#200;&#201;&#202;&#203;&#204;&#205;&#=
206;&#207;&#210;&#211;&#212;&#213;&#214;&#216;&#220;&#219;&#217;&#218;&#209=
;&#199;&#224;&#225;&#226;&#227;&#228;&#229;&#233;&#232;&#235;&#234;&#237;&#=
237;&#238;&#239;&#241;&#243;&#242;&#244;&#246;&#245;&#250;&#249;&#251;&#252=
;&#248;'
,
	'&#203;&#231;&#229;&#204;&#128;&#129;&#233;&#131;&#230;&#232;&#237;&#234;&=
#235;&#236;&#241;&#238;&#239;&#205;&#133;&#175;&#134;&#243;&#244;&#242;&#13=
2;&#130;&#136;&#135;&#137;&#139;&#138;&#140;&#142;&#143;&#145;&#144;&#146;&=
#147;&#148;&#149;&#150;&#151;&#152;&#153;&#154;&#155;&#156;&#157;&#158;&#15=
9;&#191;')"/>


the first list are ANSI-codes, the second list are MacRoman codes


Julian F. Reschke wrote:
> XSLNews wrote:
> > Hello,
> >
> > I am making a textfile with xsl but the textfile is for a Apple
> > macintosh so this machine doesn't recognize the character for example
> > =EB, it must be &#206;
>
> No, it doesn't have to. As long as the text file is legal XML, any
> recipient should understand it.
>
> > Does anybody know a easy way to change all my special characters into
> > this codes ???
>
> You can try to specify an output encoding of "US-ASCII", but not all
> XSLT engines will support that (only UTF-8 and UTF-16 are mandatory).
>=20
> Best regards, Julian



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent