Re: [xsl] Stripping or converting HTML tags

Subject: Re: [xsl] Stripping or converting HTML tags
From: Bruce D'Arcus <bdarcus@xxxxxxxxxxxxx>
Date: Tue, 19 Oct 2004 10:58:23 -0400
On Oct 19, 2004, at 10:53 AM, Aaron Johnson wrote:

So far I have this, but all it does is make the table disappear completely.

<xsl:template match="xhtml:table | xhtml:TABLE | xhtml:td | xhtml:TD |
xhtml:th | xhtml:TH | xhtml:tr | xhtml:TR">
    <xsl:choose>
    <xsl:when test="*">
           <xsl:value-of select="@p"/>
    </xsl:when>
    </xsl:choose>
</xsl:template>

Could anyone point me in the right direction please?

Here's what I have for a similar problem:


<xsl:template match="xhtml:table">
  <xsl:choose>
    <xsl:when test="@width='98%'">
      <div class="record">
	<xsl:apply-templates/>
      </div>
    </xsl:when>
    <xsl:otherwise>
      <xsl:apply-templates/>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>

Bruce

Current Thread