Subject: Re: [xsl] WordML to XML/HTML From: "Joris Gillis" <roac@xxxxxxxxxx> Date: Sat, 05 Feb 2005 12:12:36 +0100 |
You'll get this output: <i> <u> <b>I have bold and italics and underscore </b> </u> </i>
<xsl:template match="w:r"> <xsl:apply-templates select="w:t"/> </xsl:template>
<xsl:template match="w:t"> <span> <xsl:apply-templates select="../w:rPr"/> <xsl:apply-templates/> </span> </xsl:template>
<xsl:template match="w:rPr"> <xsl:attribute name="style"> <xsl:apply-templates/> </xsl:attribute> </xsl:template>
<xsl:template match="w:u">text-decoration: underline;</xsl:template> <xsl:template match="w:b">font-weight: bold;</xsl:template> <xsl:template match="w:i">font-style: italic;</xsl:template>
regards, -- Joris Gillis (http://www.ticalc.org/cgi-bin/acct-view.cgi?userid=38041) Veni, vidi, wiki (http://www.wikipedia.org)
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] WordML to XML/HTML, Joris Gillis | Thread | [xsl] Help with perious ancestor el, Andrey Solonchuk |
Re: [xsl] ANN: nxslt.exe (.NET XSLT, Dimitre Novatchev | Date | Re: [xsl] grouping, sorting and sel, chunga srevenge |
Month |