|
Subject: [xsl] xsl:strip-space and nbsp From: Jordan Soet <jds@xxxxxxxxxxxxxxxxxx> Date: Tue, 27 Jun 2006 10:32:54 +0800 |
Hi, I'm having a problem with the xsl:strip-space element. I'm trying to
strip all the excess whitespace from a document, however very occasionally
I'll get some whitespace nodes which won't get stripped. I think this is
because they have non breaking spaces in them (however I'm not really sure
how to check for sure)? Here's the sample that doesn't get the space
stripped:
<?xml version="1.0" encoding="UTF-8"?>
<td colspan="11">
<p align="center"> 2000</p>
<test> </test>
</td>
And here's the output:
<?xml version="1.0" encoding="utf-8"?><td colspan="11">
<p align="center"> 2000</p><test/></td>
I found that if the last character on the 4th line was removed, then it
removed the space, so I guess that's the nbsp?
Anyways, what I'm wondering is how to strip the space including the nbsp.
Thanks,
Jordan
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] Question about Specifying, Shirley Gasch | Thread | Re: [xsl] xsl:strip-space and nbsp, David Carlisle |
| Re: [xsl] "'tokenize' is not a vali, Steve | Date | Re: [xsl] How count the Table cell , Byomkesh |
| Month |