PC Review


Reply
Thread Tools Rate Thread

Creating XSL file with word ?

 
 
sebastien.varoteaux@gmail.com
Guest
Posts: n/a
 
      6th Nov 2006
Hi,

I would like to know if it's possible to create an XSL file with Word
2003 Pro?
My client would like to modify easily word document template which will
be filed with a XML document (or a stream from a Winform application).
An XSL document is pretty hard to understand for them.

I am sure that Microsoft provide a way to make XSL file easily (from a
XSD, a DTD, an XML file...), like a WYSIWYG.

Is WML2XSLT.EXE (WordProcessingML tranform inference tool) the
solution?

Best regards,
Sébastien

 
Reply With Quote
 
 
 
 
Cindy M.
Guest
Posts: n/a
 
      8th Nov 2006
> I would like to know if it's possible to create an XSL file with Word
> 2003 Pro?
> My client would like to modify easily word document template which will
> be filed with a XML document (or a stream from a Winform application).
> An XSL document is pretty hard to understand for them.
>
> I am sure that Microsoft provide a way to make XSL file easily (from a
> XSD, a DTD, an XML file...), like a WYSIWYG.
>
> Is WML2XSLT.EXE (WordProcessingML tranform inference tool) the
> solution?
>

I don't know if it's THE solution, but it's a possibility. Sometimes the
results are exactly what you want; other times they're unusable. All you
can do is try.

Other than that, there is no tool available that I know of to do what you
describe. There may be third-party applications on the market, you'd have
to search the Internet.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)

 
Reply With Quote
 
sebastien.varoteaux@gmail.com
Guest
Posts: n/a
 
      10th Nov 2006
Hi all,

Thank you cindy for your reply.

I found the solution:

-1- Create an XSD. Set "mixed=true" where you will need to add some
text in your XSL.
For eample:
<xs:complexType name="Personne" mixed="true">
<xs:all>
<xs:element name="Lastname" type="xs:string" />
<xs:element name="Firstname" type="xs:string" />
<xs:element name="Documents" type="Documents">
</xs:element>
</xs:all>
</xs:complexType>

-2- Create a new document in Word 2003.
-3- Link the document with the XSD you've just created.
-4- Starts your template (see Creating a Seed Document which is
provided with Microsoft Office 2003 WordprocessingML Transform
Inference Tool).
-5- Save your file in XML (do not check any checkbox) - myTemplate.xml
for exemple
-6- Open a command line:
WML2XSLT.exe myTemplate.xml -db
the "-bd" option is very important
-7- A window is opened with a list of XSD found in your Xml template.
Select only the XSD you created / used.


Now you have an XSL made with Word 2003 )
You can use tables, images...
I didn't try with attributes...

Best regards,
- - - - - - - - - - - - -
Sébastien

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating Word document of Word 97-2003 file type on the New menu in Vista =?Utf-8?B?TWlrcm9YUA==?= Windows Vista General Discussion 7 19th Mar 2007 04:59 PM
Creating Word document of Word 97-2003 file type on the New menu in Vista =?Utf-8?B?TWlrcm9YUA==?= Microsoft Word New Users 7 19th Mar 2007 04:59 PM
Creating a word file. =?Utf-8?B?SmVzcGVy?= Microsoft C# .NET 2 17th Mar 2005 07:26 PM
Creating (Help) CHM file from Word document =?Utf-8?B?S2VpdGggQnV0bGVy?= Microsoft VB .NET 6 10th May 2004 03:17 PM
creating temp file in word Ojan Pohatu Microsoft Word Document Management 1 18th Sep 2003 04:44 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:55 PM.