<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
  <html>
    <head><title>Texto Formatado</title></head>
      <body>
        <xsl:apply-templates/>
      </body>
  </html>
</xsl:template>
<xsl:template match="negrito">
  <br><b><xsl:value-of select="."/></b></br>
</xsl:template>
<xsl:template match="italico">
  <br><i><xsl:value-of select="."/></i></br>
</xsl:template>
</xsl:stylesheet>
Exemplo 2 – XSL (Texto.xsl)