output space in html from xml and xsl
-
I've a xml file which contains some spaces that i need to display in html when transform using xsl sample xml file
<root>
<child name="The quick brown fox jump over the lazy dog"/>
</root>As you see in the above sample xml, it contains lots of spaces that i need to display same in html. how do i do that? The issue is in html it render as The quick brown fox jump over the lazy dog. instead of
The quick brown fox jump over the lazy dog.
Is there any way by which modifying the xsl gives me the same result. Any help is highly appreciated.
-
I've a xml file which contains some spaces that i need to display in html when transform using xsl sample xml file
<root>
<child name="The quick brown fox jump over the lazy dog"/>
</root>As you see in the above sample xml, it contains lots of spaces that i need to display same in html. how do i do that? The issue is in html it render as The quick brown fox jump over the lazy dog. instead of
The quick brown fox jump over the lazy dog.
Is there any way by which modifying the xsl gives me the same result. Any help is highly appreciated.
Replace each space with
? Regards, --Perspx"The Blue Screen of Death, also known as The Blue Screen of Doom, the "Blue Screen of Fun", "Phatul Exception: The WRECKening" and "Windows Vista", is a multi award-winning game first developed in 1995 by Microsoft" - Uncyclopedia
-
I've a xml file which contains some spaces that i need to display in html when transform using xsl sample xml file
<root>
<child name="The quick brown fox jump over the lazy dog"/>
</root>As you see in the above sample xml, it contains lots of spaces that i need to display same in html. how do i do that? The issue is in html it render as The quick brown fox jump over the lazy dog. instead of
The quick brown fox jump over the lazy dog.
Is there any way by which modifying the xsl gives me the same result. Any help is highly appreciated.
-
I've a xml file which contains some spaces that i need to display in html when transform using xsl sample xml file
<root>
<child name="The quick brown fox jump over the lazy dog"/>
</root>As you see in the above sample xml, it contains lots of spaces that i need to display same in html. how do i do that? The issue is in html it render as The quick brown fox jump over the lazy dog. instead of
The quick brown fox jump over the lazy dog.
Is there any way by which modifying the xsl gives me the same result. Any help is highly appreciated.
As Perspx said. You may be able to do it with the translate function, I haven't tried it. Otherwise, maybe you could perhaps insert pre or div tags around the text.