xsl-list
[Top] [All Lists]

WordML to XML/HTML

2005-02-04 19:42:31

--- Vasu Nanjangud <vasdeep(_at_)yahoo(_dot_)com> wrote:

Date: Fri, 4 Feb 2005 18:40:46 -0800 (PST)
From: Vasu Nanjangud <vasdeep(_at_)yahoo(_dot_)com>
Subject: WordML to XML/HTML
To: xsl-list-digest(_at_)lists(_dot_)mulberrytech(_dot_)com

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 

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>