I've written (well adapted) an XSLT transform to attempt to remove font tags
from some XHTML.  However the transform is removing the font tags, and *all*
the text between the font tags. Any ideas on how to remove just the font tags,
and keep the text inside?

Here's the transform:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0"
                xmlns:atom="http://www.w3.org/2005/Atom";
                xmlns:xhtml="http://www.w3.org/1999/xhtml";>

  <!-- Remove all fonts -->
  <xsl:template match="xhtml:font"/>

  <!-- pass through everything else -->
  <xsl:template match="@*|node()">
    <xsl:copy>
      <xsl:apply-templates select="@*|node()"/>
    </xsl:copy>
  </xsl:template>

</xsl:stylesheet>

--
Sonia Hamilton
http://www.snowfrog.net
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to