Subject: RE: [xsl] preserving XHTML from XML source From: "Andreas L. Delmelle" <a_l.delmelle@xxxxxxxxxx> Date: Tue, 25 May 2004 20:49:02 +0200 |
> -----Original Message----- > From: Zakon, Stuart [mailto:stuart_zakon@xxxxxxxxx] > Hi, <snip /> > > Is there a better way to do this? > The preferrable solution IMHO would be to replace the xsl:copy-of with an xsl:apply-templates, and add a template matching b nodes. Since, for the text nodes, you can depend on the default template rule to perform its magic, the text will automatically be copied. <xsl:template match="Message"> <tr> <td> <xsl:apply-templates /> </td> </tr> </xsl:template> <xsl:template match="b"> <xsl:copy> <xsl:apply-templates /> </xsl:copy> </xsl:template> Should do it. HTH! Greetz, Andreas
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] preserving XHTML from XML sou, Zakon, Stuart | Thread | [xsl] Need help on that tricky sele, Christoph Wieseke |
[xsl] preserving XHTML from XML sou, Zakon, Stuart | Date | [xsl] Need help on that tricky sele, Christoph Wieseke |
Month |