|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: replace table by one code tag
Try: <xsl:template match = "table[@bgcolor='blue']"> <code> <xsl:apply-templates/> </code> </xsl:template> HTH Vasu ----- Original Message ----- From: <rd.contact@xxxxxxx> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Sent: Friday, January 21, 2005 10:51 AM Subject: 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








