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>
-
make a space in between data in xsl (7 messages)
- Posted by: tom cracks
- Posted on: May 17 2005 21:52 EDT
Threaded Messages (7)
- make a space in between data in xsl by Rakesh Malpani on May 18 2005 09:49 EDT
- re: by tom cracks on May 18 2005 20:37 EDT
- Try this by Roman Merkushen on May 19 2005 11:24 EDT
- make a space in between data in xsl by Paul Russell on May 19 2005 12:31 EDT
- still no space by tom cracks on May 24 2005 02:31 EDT
- still no space by Paul Russell on May 25 2005 01:55 EDT
- still no space by tom cracks on May 24 2005 02:31 EDT
- Re: make a space in between data in xsl by John Cardwell on October 10 2008 19:17 EDT
-
make a space in between data in xsl[ Go to top ]
- Posted by: Rakesh Malpani
- Posted on: May 18 2005 09:49 EDT
- in response to tom cracks
try S#32; . Its basically escaping the & of space. Hence its equivalent to &nbsp; when parsed would result
Hope this helps.
Rakesh. -
re:[ Go to top ]
- Posted by: tom cracks
- Posted on: May 18 2005 20:37 EDT
- in response to Rakesh Malpani
hi there thanks for the reply
but after using that code the result is
12S#32;pound -
Try this[ Go to top ]
- Posted by: Roman Merkushen
- Posted on: May 19 2005 11:24 EDT
- in response to tom cracks
Try adding disable-output-escaping="yes" in your <xsl:value > tag.
Roman -
make a space in between data in xsl[ Go to top ]
- Posted by: Paul Russell
- Posted on: May 19 2005 12:31 EDT
- in response to tom cracks
Um. Can you not use xsl:text?
<xsl:value-of select="foo"/><xsl:text> </xsl:text></xsl:value-of select="bar"/>
Paul -
still no space[ Go to top ]
- Posted by: tom cracks
- Posted on: May 24 2005 02:31 EDT
- in response to Paul Russell
hmm not sure why , but all of those doesnt give a space in between the values ... -
still no space[ Go to top ]
- Posted by: Paul Russell
- Posted on: May 25 2005 01:55 EDT
- in response to tom cracks
Hmm. You could also try the following, which will insert a unicode non-breaking space into the XML stream.
<xsl:value-of/> <xsl:value-of/>
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...
Paul -
Re: make a space in between data in xsl[ Go to top ]
- Posted by: John Cardwell
- Posted on: October 10 2008 19:17 EDT
- in response to tom cracks
The "" didn't work for me. I used: <![CDATA[ ]]>