Register  Login       Search  
Forum  
 
  
 
Forum  Forum     
 
SearchForum Home
  XML  Employing XML in .NET  HTML To WordML...
 HTML To WordML
 
chaosblade
2 posts
Joined
7/25/2006

HTML To WordML
Posted: 25 Jul 06 8:07 AM (Israel)

Not sure if im posting this in the correct place, But since the solution i require is indeed a .NET one, And any solution messing with WordML will probably include XML, I suppose this is the right forum.

What way is there currently to transform an HTML page, as is, Into a WordML 'section' (Paragraph, chunk, Anything that isnt a complete WordML document but a part that can be inserted into one), WITHOUT using Word Automatation?

This is a problem i have not been able to find a solution to - Other perheps then writing manually some XSLT file to do the entire transformations for me - something i'd currently like to avoid.

If you have any advice in this matter, It would be most welcome.

Thanks in advance, Ran 'chaosblade' Sagy.

olegt
85 posts
www.xmllab.net
Joined
2/25/2005

Re: HTML To WordML
Posted: 26 Jul 06 7:57 AM (Israel)
I know it can be done in Word 2007 (see http://openxmldeveloper.org/forums/thread/62.aspx), but in Word 2003 I'm not aware of any solution other than using automation or XSLT.
Oleg Tkachenko, Microsoft MVP for XML, MCPD
http://www.XmlLab.Net | http://blog.tkachenko.com
chaosblade
2 posts
Joined
7/25/2006

Re: HTML To WordML
Posted: 26 Jul 06 2:59 PM (Israel)
I see. Is there some example of XSLT Transformations with dynamic content? I've looked at the Infernce tool that MS provides aswell as some demo-XSLT file, But I can't seem to adjust either to my situation - For example, Should i have an html tag as <font color="red">, I want the XSLT to use that color attribute to change the text color red for that paragraph. All the tool seems to do is copy the exact formatting (hence predefined any not dynamic as wanted) for every tag encountered in the seed document and input xml documents.
  XML  Employing XML in .NET  HTML To WordML...
Forum Home  Search