Re: [xsl] Span apply

Subject: Re: [xsl] Span apply
From: Alexey Nickolaenkov <nikolaenkov@xxxxxxxxxxxx>
Date: Mon, 22 Jan 2007 15:57:26 +0300
Monday, January 22, 2007, 3:48:23 PM, you wrote:

B> Hi All,

B> How apply Span in XSLT

B> Input 
B> ======

B> <SPAN style="font-size: 11pt; font-family:
B> verdana,arial,helvetica">Chapter I</SPAN>
B> <SPAN style="font-size: 10pt; font-family:
B> verdana,arial,helvetica">Section</SPAN>


B> My XSL
B> ======

B> <xsl:template match="SPAN[@style='font-size.11pt']">
B> <chapter>
B> <xsl:apply-templates/>
B> </chapter>
B> </xsl:template>

hehe <xsl:template match="SPAN[contains(@style,'font-size: 11 pt')]">


B> <xsl:template match="SPAN[@style='font-size.10pt']">
B> <section>
B> <xsl:apply-templates/>
B> </section>
B> </xsl:template>

<xsl:template match="SPAN[contains(@style,'font-size: 10 pt')]">

B> Want Output
B> ===========

B> <chapter>Chapter I</chapter>
B> <section>Section I</section>

B> I have tried this option, but did not work.  Anyone find out the
B> solution

B> Thanks and Regards
B> Byomokesh





-- 
Alexey                            mailto:nikolaenkov@xxxxxxxxxxxx

Current Thread