[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] replace table by one code tag

Subject: Re: [xsl] replace table by one code tag
From: rd.contact@xxxxxxx
Date: Fri, 21 Jan 2005 12:54:46 +0100

I thank you for your assistance, but I need something that imports all nodes
inside the table and remove all nested <code> tags before replacing all by a
global <code>

<table bgcolor="blue">

must return <code>a b<p>hello</p></code>

I think

 <xsl:template match = "table[@bgcolor='blue']">

will not remove <code(s)> inside <table>

 <xsl:template match="table[@bgcolor='blue']">
  <code><xsl:value-of select="."/></code>

will remove all nodes (<br>, <font> ...)

Current Thread