xsl template killing my <sup>DHA</sup> why??
I'm fairly new to xml/xsl structures...sorry if this is a dumb question?
I have a xsl doc:
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="content">
<xsl:if test="header_image/@path != ''">
<img src="{header_image/@path}" width="393" alt="{header_image/@alt}" /><br />
</xsl:if>
<xsl:if test="subheader/@path != ''">
<img src="{subheader/@path}" width="393" alt="{subheader/@alt}" />
</xsl:if>
<br />
<xsl:for-each select="article">
<p><a href="#{@id}"><xsl:if test="date != ''"><xsl:value-of select="date" /><br /></xsl:if><xsl:value-of select="title" /></a></p>
</xsl:for-each>
<xsl:for-each select="article">
<p><a name="{@id}"></a><xsl:if test="date != ''"><xsl:value-of select="date" /><br /></xsl:if><xsl:value-of select="title" /></p>
<p><xsl:copy-of select="text" /></p>
<p><a href="#top">Return to top ^</a></p>
</xsl:for-each>
<xsl:if test="footer != ''">
<span class="small"><xsl:copy-of select="footer" /></span><br /><br />
</xsl:if>
</xsl:template>
</xsl:stylesheet>
its pulled into a .asp page using .xml page with html here:
<?xml version="1.0" encoding="UTF-8"?>
<content>
<header_image path="" alt="" />
<subheader path="" alt="" />
<article id="1">
<date></date>
<title>Q: What is the difference between N<sup>DHA</sup> and N<sup>3</sup>?</title>
<text><b>A:</b> For a comparison chart of N<sup>DHA</sup> and N<sup>3</sup>, <a href="http://www.website.com/N_Chart.pdf">click here</a>
</text>
</article>
</content>
For a FAQ's type page that lists all articles at the top and click on it to reveal the answer down below..and has "back to top"
But inside the <title> tags I have <sup>DHA</sup> and they wont' show on page? But do fine in the <text> tags?
What am i doing wrong? Or what can I change to make the subscripts show in the <title> tags on the site?
any help is appreciated...thx
|