[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

WordML to XML/HTML

Subject: WordML to XML/HTML
From: Vasu Nanjangud <vasdeep@xxxxxxxxx>
Date: Fri, 4 Feb 2005 18:42:31 -0800 (PST)
wordml to xml
--- Vasu Nanjangud <vasdeep@xxxxxxxxx> wrote:

> Date: Fri, 4 Feb 2005 18:40:46 -0800 (PST)
> From: Vasu Nanjangud <vasdeep@xxxxxxxxx>
> Subject: WordML to XML/HTML
> To: xsl-list-digest@xxxxxxxxxxxxxxxxxxxxxx
> 
> Hi,
> 
> I have WordML data like this... 
> <w:r>
>    <w:rPr>
> 	   <w:i>
>          <w:u w:val="single"/>
>          <w:b/>
>     </w:rPr>
>      <w:t>I have bold and italics and underscore
> </w:t>
> </w:r>
> 
> For this to be converted to html, I'm trying to
> write
> XSLT code using this logic
>    <xsl:template match="w:r" >
> 	if child contains "w:i" 
> 		<xsl:text><i></xsl:text>
> 	if child contains "w:b" 
> 		<xsl:text><b></xsl:text>
> 	if child contains "w:u" 
> 		<xsl:text><i></xsl:text>
> 
> 		print the text contained in "w:t" 
> 
> 	if child contains "w:u" 
> 		<xsl:text></i></xsl:text>
> 	if child contains "w:b" 
> 		<xsl:text></b></xsl:text>
> 	if child contains "w:/i" 
> 		<xsl:text><i></xsl:text>
>    </xsl:template>
> 
> I'm new to XSLT and I'm trying to write XSLT for
> converting WordML to html data...
> Could someone please tell me how I can achieve
> this...
> 
> Thanks,
> Vasu
> 
> 
> 	
> 		
> __________________________________ 
> Do you Yahoo!? 
> Yahoo! Mail - You care about security. So do we. 
> http://promotions.yahoo.com/new_mail
> 



		
__________________________________ 
Do you Yahoo!? 
All your favorites on one personal page  Try My Yahoo!
http://my.yahoo.com 

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.