xsl-list
[Top] [All Lists]

Re: replace table by one code tag

2005-01-21 04:54:46
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>

ie:
<table bgcolor="blue">
<tr>
 <td>
  <code>
   a
    <code>b</code>
    <p>hello</p>
  </code>
  c
</...>

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

I think

 <xsl:template match = "table[(_at_)bgcolor='blue']">
   <code>
    <xsl:apply-templates/>
   </code>
 </xsl:template>

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

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

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




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>