xsl-list
[Top] [All Lists]

RE: Inserting White Space (  ) through XSL.

2004-05-03 00:19:06
Thanks Everyone.

As I have already, l had tried " ". But it was not working. 
BEcause that iserts white space in the output text. and all browser are 
intelligent enough to remove the border incase there is no text found in TD 
element.

FYI, stuff that worked for me is:
<xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
And this inserts &nbsp; in the output. 

Thanks once again.

Regards,
Animesh


-----Original Message-----
From: Passin, Tom [mailto:tpassin(_at_)mitretek(_dot_)org]
Sent: Friday, April 30, 2004 8:47 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] Inserting White Space (&nbsp; ) through XSL.


From: Animesh Sharma [mailto:asharma(_at_)in(_dot_)firstrain(_dot_)com] 

Yeah, you are perfectly right saying that. 
but I know a solution for the HTML part of my problem. But 
doesn't know how to generate it thorugh XSL. i.e. how to 
generate "&nbsp" through XSL. 

"&#160;" is equivalent to "&nbsp;".  Either causes the browser to insert
the same character into the document (if not, it would be very unusual,
to say the least).

When I tried your template (without, of course, the part that selects
text from your source document), I did in fact get visible borders on
the cells (in Internet Explorer).

So you need to track down what output you are really getting, and what
is causing cause it to be different from what you expected.  For
example, maybe another template is getting invoked here instead of the
one you expect.  No one here can help you further, given the information
you have provided.

Cheers,

Tom P

--+------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--



<Prev in Thread] Current Thread [Next in Thread>