Results 1 to 5 of 5

Thread: loading a word document with xml

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Location
    Jhb, South Africa
    Posts
    2
    Hi there

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

  2. #2
    Hyperactive Member CyberSurfer's Avatar
    Join Date
    Aug 2000
    Location
    Old London Town
    Posts
    425
    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!!

  3. #3
    Addicted Member Active's Avatar
    Join Date
    Jan 2001
    Location
    Lat: 13° 4' 46" N, Long: 80° 15' 20" E
    Posts
    209
    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..)
    Code:
    <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>
    If you can't beat your computer at chess, try kickboxing !!!
    [Download Tag Editing Tools.]

  4. #4
    Addicted Member Active's Avatar
    Join Date
    Jan 2001
    Location
    Lat: 13° 4' 46" N, Long: 80° 15' 20" E
    Posts
    209
    Sorry about thos smillies.

    I have attached the file
    Attached Files Attached Files
    If you can't beat your computer at chess, try kickboxing !!!
    [Download Tag Editing Tools.]

  5. #5
    Addicted Member Active's Avatar
    Join Date
    Jan 2001
    Location
    Lat: 13° 4' 46" N, Long: 80° 15' 20" E
    Posts
    209
    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
    If you can't beat your computer at chess, try kickboxing !!!
    [Download Tag Editing Tools.]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width