Question : How to keep HTML in XSLT?

I've got xml source code containing HTML. I'd like to extract HTML and pass it on unchanged. My xslt is simplest:

      <xsl:template match="/">
            <xsl:value-of select="//MainContent" />
      </xsl:template>

As a result I get all the text in MainContent but HTML is lost. Playing with disable-output-escaping didn't help.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
<root>
<MainContent>
<p> </p>
<p>In addition to keeping a <a title="Portfolio watch" href="/know_adviser.aspx?id=317">watch on your portfolio</a> to ensure each 
investment opportunity is <a title="Glossary" href="/index.aspx?id=195#suitable_investment">suitable</a>, you should conduct 
an annual check-up of your portfolio with your advisor.</p>
<p>An annual check-up will help ensure that you are on track to achieve your 
investment goals. If your portfolio is off track, ask for a plan to get it back 
on track as soon as possible.</p>
</MainContent>
<RelatedContentIntro> We provide these links because we believe that they have information that can be <br />helpful when taken in the right context. The BCSC does not endorse the authors <br />of the links and does not guarantee the reliability or accuracy of the <br />information. Users assume responsibility for any reliance they place on the <br />information provided by a related link.</RelatedContentIntro>
<RelatedContentGroup>
<RelatedContentTitle>How to do an annual financial checkup</RelatedContentTitle>
<RelatedContentDetails>Though the article uses U.S. references, the basics it discusses can still apply to Canadian investors planning to do annual portfolio check-ups.</RelatedContentDetails>
</RelatedContentGroup>
</root>

Answer : How to keep HTML in XSLT?

try to replace
<xsl:value-of select="//MainContent" />
to
<xsl:copy-of select="//MainContent/*" />
Random Solutions  
 
programming4us programming4us