xsl-list
[Top] [All Lists]

Re: replace table by one code tag

2005-01-21 03:59:55
Try:
<xsl:template match = "table[(_at_)bgcolor='blue']">
  <code>
   <xsl:apply-templates/>
  </code>


</xsl:template>

HTH
Vasu
----- Original Message ----- 
From: <rd(_dot_)contact(_at_)free(_dot_)fr>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Friday, January 21, 2005 10:51 AM
Subject: [xsl] replace table by one code tag


Hi,

I want to replace all HTML <table> with attribute bgcolor="blue" by
<code></code> tags. But if the table contains <code>, I want the result to
have
only one <code>

ie :
<table bgcolor="blue"><tr><td><code>a<code>b</code></code>c</...>
or
<table bgcolor="blue"><tr><td>abc</...>
must return
<code>abc</code>

Any suggestion?

regards,
Steve

--~------------------------------------------------------------------
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>
--~--



--~------------------------------------------------------------------
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>