[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Span apply
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|