Re: wordML XML and HTML
- From: Peter Jamieson <pjj@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 22 Dec 2008 10:16:38 +0000
You shouldn't expect Word to render HTML embedded in WordML - the table layout needs to be expressed using WordML table elements instead.
Peter Jamieson
http://tips.pjmsn.me.uk
LNowak wrote:
Problem: In my xml file - there is element that has HTML formatted text in it. When Word imports my XML file - it displays the element as text string and does not render the HTML stored in the element..
Normally - that is probally what I would want - but in this case I need the table render.
<examples>
<customer> John smith</customer>
<example_table><table style="width: 100%" class="style8">
<tr><td>ABC</td><td>XYZ</td><td>123</td></tr>
<tr><td>ABC</td><td>XYZ</td><td>123</td></tr>
</table>
</example_table>
</examples>
I have been trying to get this to work for couple hours now... :(
I have an xsd , xml and xslt
I open the xsd in word
format the the xml tags etc... create the seed doc
save as xml file - uncheck save data only
run the seed doc through xml2xslt
run the xml and xslt through transformer
Everything works, doc looks good etc... except for the couple of elements that have preformatted HTML data. They are displayes as string in the doc and not renedered as Tables.
Any one know what I might be missing or have pointer?
Thanks
Leigh
- References:
- wordML XML and HTML
- From: LNowak
- wordML XML and HTML
- Prev by Date: Re: wordML XML and HTML
- Next by Date: Re: Setting up Word 2007 to run macros
- Previous by thread: Re: wordML XML and HTML
- Next by thread: Save in three locations
- Index(es):
Relevant Pages
|