Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Posts
    406
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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>

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Posts
    185
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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>

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Posts
    406
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks I will try this


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •