title: Change font in XML using XSLT
body: <p>I'm new to XSLT. I'm trying to change the font size of a specific text in XML file using XSLT. For eg- I have the CDCatalog.xml file with following data.</p>
  
  <pre><code>  &lt;?xml version="1.0" encoding="ISO-8859-1" ?&gt;
  &lt;?xml-stylesheet type="text/xsl" href="cdcat.xsl"?&gt;
  
  &lt;catalog&gt;
   &lt;cd&gt;
    &lt;title&gt;Empire Burlesque&lt;/title&gt; 
    &lt;artist&gt;&lt;SmallText&gt;Bob Dylan&lt;/SmallText&gt;&lt;LineBreak/&gt;*&lt;/artist&gt;
    &lt;country&gt;USA&lt;/country&gt;
    &lt;company&gt;Columbia&lt;/company&gt; 
    &lt;price&gt;10.90&lt;/price&gt; 
    &lt;year&gt;1985&lt;/year&gt; 
    &lt;/cd&gt;
  &lt;/catalog&gt;
  </code></pre>
  
  <p>and the cdCat.XSL file is-</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1" ?&gt; 
  
  &lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;
    &lt;xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes" /&gt;
    &lt;xsl:include href="cdCatalog.xsl" /&gt; &lt;!-- I added this --&gt;
  &lt;xsl:template match="/"&gt;
   &lt;html&gt;
   &lt;body&gt;
    &lt;h2&gt;My CD Collection&lt;/h2&gt; 
   &lt;table border="1"&gt;
   &lt;tr bgcolor="#9acd32"&gt;
    &lt;th align="left"&gt;Title&lt;/th&gt; 
    &lt;th align="left"&gt;Artist&lt;/th&gt; 
    &lt;/tr&gt;
   &lt;xsl:for-each select="catalog/cd"&gt;
   &lt;tr&gt;
   &lt;td&gt;
    &lt;xsl:value-of select="title" /&gt; 
    &lt;/td&gt;
   &lt;td&gt;
   &lt;xsl:value-of select="artist" /&gt; 
    &lt;/td&gt;
    &lt;/tr&gt;
    &lt;/xsl:for-each&gt;
  
    &lt;/table&gt;
    &lt;/body&gt;
    &lt;/html&gt;
    &lt;/xsl:template&gt;
  
  &lt;/xsl:stylesheet&gt; 
  </code></pre>
  
  <p>I added a new xsl file cdCatalog.XSL file with following details-</p>
  
  <pre><code>&lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;
  
  &lt;xsl:template match="LineBreak"&gt;
      &lt;br/&gt;
  &lt;/xsl:template&gt;
  
  &lt;xsl:template match="Superscript"&gt;
      &lt;sup&gt;
          &lt;xsl:value-of select="."/&gt;
      &lt;/sup&gt;
  &lt;/xsl:template&gt;
  
  &lt;xsl:template match="SmallText"&gt;
      &lt;font size="1"&gt;
          &lt;xsl:value-of select="."/&gt;
      &lt;/font&gt;
  &lt;/xsl:template&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>and included this file in the CDCat.xsl file.and added the tags - <code>&lt;smallText&gt;</code>, <code>&lt;LineBreak&gt;</code> in the CdCatalog.xml file. now when I open the xml file i dont see the LineBreak nor the font size difference. Can anyone please suggest if I'm missing something.</p>
  
  <p>Thanks in advance
  Sai</p>