hi there , may i know how can i make a "space" in between to data ...
<TD><xsl:value-of select="weight"/> "need a space here" <xsl:value-of select="weight/@units"/></TD>
try S#32; . Its basically escaping the & of space. Hence its equivalent to &nbsp; when parsed would result
Hope this helps.
hi there thanks for the reply
but after using that code the result is
Try adding disable-output-escaping="yes" in your <xsl:value > tag.
Um. Can you not use xsl:text?
<xsl:value-of select="foo"/><xsl:text> </xsl:text></xsl:value-of select="bar"/>
hmm not sure why , but all of those doesnt give a space in between the values ...
Hmm. You could also try the following, which will insert a unicode non-breaking space into the XML stream.
It would help a lot to know what the context of your question is:
* Are you using any particular framework (e.g. cocoon?)
* What are you using to serialise the resulting XML into HTML that the browser can understand? (i.e. what do you have after the XSLT transformation)
* Your HTML serialiser is responsible for turning the into something meaningful from an HTML point of view as the stream is serialized. If you're not using a serialiser, or you're using something hand-crafted, this may be your problem. The suggestions of trying to do &nbsp; shouldn't work if you're using a proper serializer, because it will render the '&' in the output stream as & again.
Hope that helps...
didn't work for me.