Subject: [xsl] XSL for WordML -> specific HTML From: Stephen <azrael@xxxxxxxxxxxxxxxxx> Date: Thu, 05 May 2005 15:34:59 +0100 |
<wx:sub-section> <w:p> <w:pPr> <w:pStyle w:val="Heading1"/> </w:pPr> <w:r> <w:t>Hello 1</w:t> </w:r> </w:p> <w:p> <w:r> <w:t>Some random normal text 1</w:t> </w:r> </w:p> <wx:sub-section> <w:p> <w:pPr> <w:pStyle w:val="Heading2"/> </w:pPr> <w:r> <w:t>Hello 2</w:t> </w:r> </w:p> <w:p> <w:r> <w:t>Some random normal text 2</w:t> </w:r> </w:p>
<div style="level1">Hello 1</div> <p>Some random normal text 1</p>
<div style="level2">Hello 2</div> <p>Some random normal text 2</p>
<xsl:template match="w:pStyle[@w:val='Heading1']"> <div class="section_L1"> <xsl:value-of select="../../w:r/w:t/text()"/> </div> </xsl:template>
<xsl:template match="w:pStyle[@w:val='Heading2']"> <div class="section_L2"> <xsl:value-of select="../../w:r/w:t/text()"/> </div> </xsl:template>
-- Azrael
("\''/").___..--'''"-._ `0_ O ) `-. ( ).`-.__.`) (_Y_.)' ._ ) `._ `. ``-..-' _..`--'_..-_/ /--'_.' .' ((i).-'' ((i).' (((.-'
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] need to limit a For:each , Jon Gorman | Thread | Re: [xsl] XSL for WordML -> specifi, JBryant |
[xsl] need to limit a For:each loop, sales | Date | RE: [xsl] XSL - Transforming 2 XSL , Andrew Welch |
Month |