Go Back   CodingForums.com > :: Client side development > XML

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-13-2002, 02:01 PM   PM User | #1
chelvis
Regular Coder

 
Join Date: Jun 2002
Posts: 406
Thanks: 0
Thanked 0 Times in 0 Posts
chelvis is an unknown quantity at this point
How to put a space character with xsl

I have pasted the code below. In that code I have two xsl:value-of select. In between these 2 I need to put a space. I tried   and also but the 2 variables are being put together without a space. Say for example if the first variable is "my" and the second variable is "Flower", I want it to display "my Flower". But it is displaying "myFlower". Can any one help me with this?. I want a space where I am specifying "space here".

<xsl:variable name="MAIN-SUB-HEADING">{<xsl:value-of select="//PAGE-RESULTS/PAGE-ENTRY/I-DOCUMENT/EI-MAIN-HEADING"/>space here<xsl:value-of select="//PAGE-RESULTS/PAGE-ENTRY/EI-DOCUMENT/EI-SUB-HEADING"/>}</xsl:variable>
chelvis is offline   Reply With Quote
Old 08-13-2002, 03:50 PM   PM User | #2
BrainJar
Regular Coder

 
Join Date: Jun 2002
Posts: 185
Thanks: 0
Thanked 0 Times in 0 Posts
BrainJar is an unknown quantity at this point
You can wrap a space in an <xsl:text> tag:

<xsl:variable name="MAIN-SUB-HEADING">{<xsl:value-of select="//PAGE-RESULTS/PAGE-ENTRY/I-DOCUMENT/EI-MAIN-HEADING"/><xsl:text> </xsl:text><xsl:value-of select="//PAGE-RESULTS/PAGE-ENTRY/EI-DOCUMENT/EI-SUB-HEADING"/>}</xsl:variable>
BrainJar is offline   Reply With Quote
Old 08-13-2002, 04:53 PM   PM User | #3
chelvis
Regular Coder

 
Join Date: Jun 2002
Posts: 406
Thanks: 0
Thanked 0 Times in 0 Posts
chelvis is an unknown quantity at this point
Thanks I will try this
chelvis is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:27 AM.


Advertisement
Log in to turn off these ads.