[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Handling of special characters like © etc

Subject: Handling of special characters like © etc
From: "Yogesh Dare" <yogeshd@xxxxxxxxxx>
Date: Thu, 3 May 2001 12:20:49 +0530
wap special characters list
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.