[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] =?iso-8859-1?Q?Handling_of_special_characters_like_=A9_etc?=


Subject: [xsl] Handling of special characters like © etc
From: "Yogesh Dare" <yogeshd@xxxxxxxxxx>
Date: Thu, 3 May 2001 12:20:49 +0530

Hi ,
My problem is related with handling special characters.

1.I am using SaxParser of Xalan.

For wap page my xml look like this.
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
  <card>
      © 2000 site.com
      <a href="http://somehost.com?name=n1&add=a1">Hello</a>
  </card>
</wml>

Now This page is given to SaxParser.There I get one exception of invalid
character.I found that is for  © .

If i Put <?xml version=\"1.0\" encoding=\"iso-8859-1\"?> in place of <?xml
version="1.0"?> Then I am able to get through  © as well.
Now after parsing, the parser output is given to XSLTProcessor to apply xsl
on it.But there again I face problem for characters like &,<,> etc.
Well I can actually replace these known characters by there equivalents like
for & i can put &amp; and so on.
But I want some generic way to handle this.

I want some help for these character handline at both the places.
1. at parsing level
2. at xsl processing level.
So that I can get clean html output thr' my xsl which will have © such
symbols as well as & ,<, > etc characters.

Well plz comment if any one knows abt this,
Thanx.
Yogesh.


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



Current Thread
Keywords