space in XSLT

Here should go questions about transforming XML with XSLT and FOP.
gantichi
Posts: 2
Joined: Wed Jan 26, 2005 1:10 pm

space in XSLT

Post by gantichi »

I use to show XML files using XSLT stylesheets. To do this, at the begin I used the instruction
<?xml-stylesheet type="text/xsl" href="http://www.......xslt"?>
To mantain "spaces" in the result, I used &#160; (corresponding to &nbsp; in HTNL).
Now I have to merge the XML and XSLT files al server level, using in ASP the instruction:
Response.Write(objXML.transformNode(objXSL))
All works fine, but the character corresponding to &#160; is "?".
What is the code to use, to show spaces in a resulting page?
Hoping to be clear, and hoping someone can help.
Tnx
Gianfranco
Radu
Posts: 9046
Joined: Fri Jul 09, 2004 5:18 pm

Is this what you're looking for?

Post by Radu »

That's the "escaped" version of the space character:

Code: Select all

&#32;
Post Reply