File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes XSLT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XSLT" Watch "XSLT" New topic


Amit Goel
Ranch Hand

Joined: Dec 07, 2000
Posts: 50
in XSLT how do i insert white space characters in the stylesheets while displaying the output in the text mode.
[This message has been edited by amit goel (edited September 10, 2001).]

Amit<br /> <br />The Less I have, The more I gain..Off the Beaten Path, I Reign.
Tanya Rawat
Ranch Hand

Joined: Jul 23, 2001
Posts: 31
If you mean by white space like in HTML & nbsp ; then in place of that in XSL it is & #xA0 ; please discard white spaces before and after nbsp and #xA0 between & and ; because if i write it correctly it is leaving white space and it could not be seen.

Jain Saurabh

Joined: Sep 05, 2001
Posts: 26
you can do this by using
<xsl:text> </xsl:text>
Hope it works!!!
Jain Saurabh

Joined: Sep 05, 2001
Posts: 26
my previous answer was iterpreted to be taken as a space i think they are also using xml
<xsl:text>& #xa0;</xsl:text>
I agree. Here's the link:
subject: XSLT
It's not a secret anymore!