Creating XSL file with word ?

  • Thread starter sebastien.varoteaux
  • Start date
S

sebastien.varoteaux

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
 
C

Cindy M.

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 :)
 
S

sebastien.varoteaux

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 :eek:)
You can use tables, images...
I didn't try with attributes...

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top