|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: preserving XHTML from XML source
> -----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
|
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








