|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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 & 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








