XSL: Replace underscore with a space?

In an xsl stylesheet how would I go about replacing the underscores "_" with a space in the Title nodes of my xml file below?

<?xml version="1.0" encoding="utf-8" ?>
<Folder xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <FolderID>466</FolderID>
  <ParentID>416</ParentID>
  <Title>Breast_Cancer</Title>
  <Description />
  <Folders>
    <Folder>
      <FolderID>470</FolderID>
      <ParentID>466</ParentID>
      <Title>Carcinoma_In_Situ</Title>
      <Description />
      <Folders />
    </Folder>
    <Folder>
      <FolderID>470</FolderID>
      <ParentID>466</ParentID>
      <Title>Complementary_Medicine</Title>
      <Description />
      <Folders />
    </Folder>
  </Folders>
</Folder>

Thank you.
greddinAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jkmyoungCommented:
use the translate function whenever you call it's value,
eg. <xsl:value-of select="translate(Title,'_',' ')"/>
greddinAuthor Commented:
Thanks, I have this but it's not working:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ccs="CancerConsultants.Syndication" exclude-result-prefixes="ccs">
     <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
     <xsl:variable name="FolderCountHalf" select="(count(/ccs:Folder/ccs:Folders/ccs:Folder) + 1) div 2"/>
     <xsl:template match="/ccs:Folder">
          <html>
               <body>
                    <table border="1">
                         <xsl:for-each select="ccs:Folders/ccs:Folder[position() &lt;= $FolderCountHalf]">
                              <tr>
                                      <td><xsl:apply-templates select="."/><br/>
                                      <xsl:value-of select="translate(Title,'_',' ')"/>
                                      </td>
                                                      <td>
                                    <xsl:choose>
                                                      <xsl:when test="following-sibling::ccs:Folder[position() = $FolderCountHalf]">
                                                            <xsl:apply-templates select="following-sibling::ccs:Folder[position() = $FolderCountHalf]"/>
                                                      </xsl:when>
                                                      <xsl:otherwise>&#160;</xsl:otherwise>
                                                      </xsl:choose>
   
                                   </td>
                              </tr>
                         </xsl:for-each>
                    </table>
               </body>
          </html>
     </xsl:template>
     <xsl:template match="ccs:Folder">
          <a href="{ccs:FolderID}"><xsl:value-of select="ccs:Title"/></a>
     </xsl:template>
</xsl:stylesheet>
jkmyoungCommented:
Forgot, as your xml in this post didn't have the xmlns attribute, so you wouldn't get the Title because it doesn't match.

You only need to change the output template:

<xsl:template match="ccs:Folder">
  <a href="{ccs:FolderID}"><xsl:value-of select="translate(ccs:Title,'_', ' ')"/></a>
</xsl:template>

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
greddinAuthor Commented:
Thank you so much again.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
XML

From novice to tech pro — start learning today.