Subject: Re: Fwd: Re: [xsl] WordML to XML From: "Joris Gillis" <roac@xxxxxxxxxx> Date: Thu, 17 Feb 2005 18:27:09 +0100 |
Hi,Please take a look at it and let me know how the 'listPr' tags be converted to give meaningful xml data like <ol> <li>Alpha</li> <li>Beta</li> <li>Gamma</li> </ol>
and other cases like a,b,c or 1,2,3,4.
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml" exclude-result-prefixes="w"> <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="*[w:p/w:pPr/w:listPr]"> <ol> <xsl:apply-templates select="w:p[w:pPr/w:listPr/w:ilvl/@w:val='0']"/> </ol> </xsl:template>
<xsl:template match="w:p"> <xsl:apply-templates select="(w:pPr|w:r)[1]" mode="styling"/> </xsl:template>
<xsl:template match="w:pPr" mode="styling"> <xsl:apply-templates select="w:listPr" mode="styling"/> </xsl:template>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Fwd: Re: [xsl] WordML to XML, Vasu Nanjangud | Thread | [xsl] Introduction of Mine, Dhiraviyam K. |
Re: [xsl] FOP, Help fo:page-number, JBryant | Date | Re: [xsl] Javascript variable to XS, Camaleón |
Month |