Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
 

Go Back   XSL - XML - RSS Forums > XML General > MS Office and XML

Tags:



Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-09-2008, 05:50 PM
AlexT.
 
Posts: n/a

Default Looking for sample XML to Word 2007 transformation / tutorial



Folks,

I guess the title says it all...

I'd like to use the "open with transform" feature of word 2007 to
transform some (fairly simple) XML files into a nice Word document. As
such I guess I have to define an XSLT... but I am at loss as of where
to start.

Is there any good tutorial / sample around ? I know google - err
windows live search - should be my friend but doesn't seem to this
time

Any pointer welcome

Thanks and regards

--AlexT
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 10-09-2008, 11:19 PM
Peter Flynn
 
Posts: n/a

Default Re: Looking for sample XML to Word 2007 transformation / tutorial

AlexT. wrote:
> Folks,
>
> I guess the title says it all...
>
> I'd like to use the "open with transform" feature of word 2007 to
> transform some (fairly simple) XML files into a nice Word document. As
> such I guess I have to define an XSLT... but I am at loss as of where
> to start.
>
> Is there any good tutorial / sample around ? I know google - err
> windows live search - should be my friend but doesn't seem to this
> time


Unless the formatting is extremely complex, don't bother.

Write a simple XSLT to transform the document into very carefully-made
XHTML, with an embedded stylesheet if it needs it, and name the output
file to end in .doc (a barefaced lie, of course).

Word can then open this without gagging, and you can click on Save As...
and save it as a native Word file.

///Peter
Reply With Quote
  #3 (permalink)  
Old 10-10-2008, 07:44 PM
AlexT.
 
Posts: n/a

Default Re: Looking for sample XML to Word 2007 transformation / tutorial


> Write a simple XSLT to transform the document into very carefully-made
> XHTML, with an embedded stylesheet if it needs it, and name the output
> file to end in .doc (a barefaced lie, of course).


Sounds like a good idea...

What tool would you use to that effect (I would obviously like
something as seamless and transparent as possible) ?

Regards

--alexT
Reply With Quote
  #4 (permalink)  
Old 10-11-2008, 05:20 PM
Peter Flynn
 
Posts: n/a

Default Re: Looking for sample XML to Word 2007 transformation / tutorial

AlexT. wrote:
>> Write a simple XSLT to transform the document into very carefully-made
>> XHTML, with an embedded stylesheet if it needs it, and name the output
>> file to end in .doc (a barefaced lie, of course).

>
> Sounds like a good idea...
>
> What tool would you use to that effect (I would obviously like
> something as seamless and transparent as possible) ?


XSLT.

///Peter
Reply With Quote
  #5 (permalink)  
Old 10-12-2008, 03:07 PM
AlexT.
 
Posts: n/a

Default Re: Looking for sample XML to Word 2007 transformation / tutorial



> XSLT.


Hmm... Probably should rephrase my question...

what Win32 XSLT processor would you recommend ? As far as I know it's
not built-in into windows...

Regards

--alexT
Reply With Quote
  #6 (permalink)  
Old 10-12-2008, 04:26 PM
Martin Honnen
 
Posts: n/a

Default Re: Looking for sample XML to Word 2007 transformation / tutorial

AlexT. wrote:

> what Win32 XSLT processor would you recommend ? As far as I know it's
> not built-in into windows...


All supported versions of Windows have IE 6 or later and therefore have
MSXML 3 installed which supports XSLT and XPath 1.0.
So you can use MSXML 3 on Windows if you know how to use it with e.g.
VBScript or JScript or classic VB 6. See the MSXML SDK for that:
http://msdn.microsoft.com/en-us/libr...42(VS.85).aspx
There is also a command line utility available to use MSXML from the
command line:
http://www.microsoft.com/downloads/d...displaylang=en

If you want to use XSLT and XPath 2.0 then you currently have the choice
of three processors, Saxon 9 (http://saxon.sourceforge.net/) coming in a
Java and a .NET version, Gestalt (http://gestalt.sourceforge.net/), and
AltovaXML (http://www.altova.com/altovaxml.html).

Office 2003 furthermore installs MSXML 5 and can use it for XML parsing,
XSLT/XPath. Not sure whether Office 2007 does the same.

--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Reply With Quote
  #7 (permalink)  
Old 10-12-2008, 04:27 PM
AlexT.
 
Posts: n/a

Default Re: Looking for sample XML to Word 2007 transformation / tutorial

Martin

Thanks a lot - wasn't aware that I had so many choices (I'm more *nix
type of guy for those matters).

--alexT
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Contact Us -|- XSL - XML - RSS Forums -|- Archive -|- Top -|-Rules/Disclaimer-|-Help/Support -|-Advertise
© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
All times are GMT. The time now is 09:43 PM.
Style Developed by Epic Designz