huZzaa 0 Newbie Poster

Hi all, I current have in place some XSL to strip html tags out. It had worked untill stuff started comming in with internal styling. I tried to introduce something to strip out the <style> tags, but it doesn't work. Here is where I have gotten so far:

<xsl:if test="contains($value,'&lt;style&gt;')">
      <xsl:value-of select="substring-before($value,'&lt;style&gt;')" disable-output-escaping="yes"/>
      <xsl:choose>
        <xsl:when test="contains(substring-after($value,'&lt;style&gt;'),'&lt;/style&gt;')">
          <xsl:call-template name="strip_HTML">
            <xsl:with-param name="value">
              <xsl:value-of select="substring-after($value,'&lt;/style&gt;')"/>
            </xsl:with-param>
          </xsl:call-template>
        </xsl:when>
        <xsl:otherwise>
        </xsl:otherwise>
      </xsl:choose>
    </xsl:if>

I am new to xsl so any advice would be greatly appreciated! Thanks!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.