Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

just a few spaces?

Status
Not open for further replies.

markSaunders

Programmer
Jun 23, 2000
196
GB
hi, checked through the forum but haven't seen an answer to this (possibly) simple problem....

how on earth do i ensure that spaces are displayed in sections of my XML docs?

also, (maybe the same problem?) how do i display the
Code:
&nbsp
in order to ensure that blank cells in tables still display the borders?

any help greatfully received!
Mark Saunders :)
 
Hi.

Try the following:

An XML doc:

<myXML>
<chapter xml:space=&quot;preserve&quot;>The spaces are preserved here lots of spaces.
</chapter>
</myXML>

regards, Kirilla
 
hi, thanks for the advice but i still cant seem to get it to work?

just to be sure i have tried:
in the .xml
[tt]
<mySpace xml:space = &quot;preserve&quot;>
The spaces are preserved here* *lots of spaces1.
</mySpace>
[/tt]

and in the .xsl
[tt]
<?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?>
<xsl:stylesheet xmlns:xsl=&quot; version=&quot;1.0&quot;>
<xsl:eek:utput method=&quot;html&quot; indent=&quot;yes&quot;/>
<xsl:template match=&quot;/&quot;>
.
.
.
<xsl:value-of select=&quot;//summary/mySpace&quot;></xsl:value-of>
<mySpace xml:space = &quot;preserve&quot;>
<xsl:value-of select=&quot;//summary/mySpace&quot;></xsl:value-of>
</mySpace>
[/tt]

i've tried it with and without the [tt]space = &quot;preserve&quot;[/tt] within the .xml document?

any more for anymore (please!!)...
cheers Mark Saunders :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top