PDA

Click to See Complete Forum and Search --> : loading a word document with xml


Koarin
Mar 1st, 2001, 05:31 AM
Hi there

How would you use an xsl to load a word document?

CyberSurfer
Mar 1st, 2001, 05:35 AM
FYI, people tend to ignore serious coding questions in Chit Chat, and reply to those in the proper forums. RE your question, I have no idea!! :)

Active
Mar 1st, 2001, 06:26 AM
You can Only load a Xml/xsl document that has schemas
like word document. I doubt you can load a binary stuff like that.
xml/xsl are text based.

You can save an excel stylesheet in to a xml document
like this(actually O2k did this for me..)

<html xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<meta name=ProgId content=Excel.Sheet>
<meta name=Generator content="Microsoft Excel 9">
<link rel=File-List href="./Page_files/filelist.xml">
<style id="Book1_23832_Styles">
<!--table
{mso-displayed-decimal-separator:"\.";
mso-displayed-thousand-separator:"\,";}
.xl1523832
{padding-top:1px;
padding-right:1px;
padding-left:1px;
mso-ignore:padding;
color:windowtext;
font-size:10.0pt;
font-weight:400;
font-style:normal;
text-decoration:none;
font-family:Arial;
mso-generic-font-family:auto;
mso-font-charset:0;
mso-number-format:General;
text-align:general;
vertical-align:bottom;
mso-background-source:auto;
mso-pattern:auto;
white-space:nowrap;}
-->
</style>
</head>

<body>
<!--[if !excel]>&nbsp;&nbsp;<![endif]-->
<!--The following information was generated by Microsoft Excel's Publish as Web
Page wizard.-->
<!--If the same item is republished from Excel, all information between the DIV
tags will be replaced.-->
<!----------------------------->
<!--START OF OUTPUT FROM EXCEL PUBLISH AS WEB PAGE WIZARD -->
<!----------------------------->

<div id="Book1_23832" align=center x:publishsource="Excel">

<table x:str border=0 cellpadding=0 cellspacing=0 width=128 style='border-collapse:
collapse;table-layout:fixed;width:96pt'>
<col width=64 span=2 style='width:48pt'>
<tr height=17 style='height:12.75pt'>
<td height=17 class=xl1523832 width=64 style='height:12.75pt;width:48pt'>Column1</td>
<td class=xl1523832 width=64 style='width:48pt'>Column2</td>
</tr>
<tr height=17 style='height:12.75pt'>
<td height=17 class=xl1523832 align=right style='height:12.75pt' x:num>10</td>
<td class=xl1523832 align=right x:num>100</td>
</tr>
<tr height=17 style='height:12.75pt'>
<td height=17 class=xl1523832 align=right style='height:12.75pt' x:num>20</td>
<td class=xl1523832 align=right x:num>200</td>
</tr>
<![if supportMisalignedColumns]>
<tr height=0 style='display:none'>
<td width=64 style='width:48pt'></td>
<td width=64 style='width:48pt'></td>
</tr>
<![endif]>
</table>

</div>


<!----------------------------->
<!--END OF OUTPUT FROM EXCEL PUBLISH AS WEB PAGE WIZARD-->
<!----------------------------->
</body>

</html>

Active
Mar 1st, 2001, 06:30 AM
Sorry about thos smillies.

I have attached the file

Active
Mar 1st, 2001, 06:48 AM
However if you are talking about a Word document
saved in RTF ..Then yes!

Here is a Tool that does Converts From RTF to xml

http://www.infinity-loop.de/en/products.html