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]

RE: Special characters in XML


Hello Joep,

I had the same problem you have. It seems like a bug in msxml, it does work
in the Saxon or XT.

I have a work around. I added to the 'template match=text()' a routine that
finds all characters with a unicode > 256 and then I replace this with the
correct character reference.
To retrieve the character number I use VBScript in the xsl.
It slows the transformation down, because there is a check on every
character, but you get what you want.

If you are interested I can send you the code.

Ewout Kanger

> -----Original Message-----
> From:	Joep Laumans [SMTP:joepl@eircom.net]
> Sent:	Friday, September 01, 2000 3:01 PM
> To:	XSL-List@mulberrytech.com
> Subject:	Special characters in XML
> 
> Hi there,
> 
> I have in my xsl file a value &#149  ( it is the · ) 
> I have a xml file with the encoding set to iso-8859-1
> 
> When use the MS xml parser ( the july 2000 version ) it will change the
> &#149 into a ? ( a question mark)
> When i use the &middot in stead of the &#149  it will tell me that the
> element does not exists.
> 
> How can I get the &#149 to display properly ..
> 
> 
> Kind regards,
> 
> Joep Laumans
> 
> 
> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
> Greenane Consultancy Ltd
> Joep Laumans
> Rock Street
> Kenmare
> joepl@eircom.net
> Phone +353 64 42722
> Fax +353 64 42719
> Mobile 086 8336079
> 
> Visit Kenmare the tidiest Town in Kerry
> http://www.kenmare.com
> + + + + + + + + + + + + + + + +  + + + + + + + + + + + + + + + + + +
> 
> 
> 
>  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]