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]

Handling of special characters like © etc


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]