How to remove additional spacing?

D

Ding Lei

Hello folks,
I am using xml for a newsletter, along with a xsl file to
display it in a browser. In the xml file, a newline, tab or whitespace
character all causes exactly one spacing between two words. That's
generally OK for English or other european languages. But since I am
using Chinese, in our convention, there shall not be any spacing between
two Chinese words. but I definitely won't my xml file being
messed up with very very long sentances all on a single line. They shall
be formatted nicely(i'm using emacs's auto fill mode), and at the same
time won't cause spacing due to newline/tab.
Any solution possible?
Thank you.



Ding Lei
 
K

Klaus Johannes Rusch

Ding said:
I am using xml for a newsletter, along with a xsl file to
display it in a browser. In the xml file, a newline, tab or whitespace
character all causes exactly one spacing between two words. That's
generally OK for English or other european languages. But since I am
using Chinese, in our convention, there shall not be any spacing between
two Chinese words. but I definitely won't my xml file being
messed up with very very long sentances all on a single line. They shall
be formatted nicely(i'm using emacs's auto fill mode), and at the same
time won't cause spacing due to newline/tab.

You will need to remove these characters when processing the XML file,
assuming the processing is done in XSLT you can use one of the XSLT
replace templates, for example
http://aspn.activestate.com/ASPN/Cookbook/XSLT/Recipe/65426
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top