[Home] [By Thread] [By Date] [Recent Entries]
Tempore 03:42:31, die 02/05/2005 AD, hinc in
xsl-list@xxxxxxxxxxxxxxxxxxxxxx scripsit Vasu Nanjangud
<vasdeep@xxxxxxxxx>:
Hi,
You'll get this output: <i> <u> <b>I have bold and italics and underscore </b> </u> </i> When you apply this stylesheet: <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:w="specify-the-namespace-here"> <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/> <xsl:template match="w:r "> <xsl:apply-templates select="(w:rPr|w:t)[1]"/> </xsl:template> <xsl:template match="w:rPr"> <xsl:apply-templates select="*[1]"/> </xsl:template> <xsl:template match="w:rPr/*">
<xsl:element name="{local-name()}">
<xsl:apply-templates select="(following-sibling::*|../../w:t)[1]"/>
</xsl:element>
</xsl:template></xsl:stylesheet> (note that you have to change the namespace first)
regards, -- Joris Gillis (http://www.ticalc.org/cgi-bin/acct-view.cgi?userid=38041) Veni, vidi, wiki (http://www.wikipedia.org)
|

Cart



