A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Tables
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Word 2003 XSL Table



 
 
Thread Tools Display Modes
  #1  
Old September 15th, 2005, 06:18 AM
Waqar Ahmed
external usenet poster
 
Posts: n/a
Default Word 2003 XSL Table

You need to repeat your student node along with its sub nodes in xml doc.
Since your student is root element in xml doc so it wont get repeated, so
first of all take your student node out of root, secondly in your word doc
let the nodes in table as they are. Now the repeated student nodes in xml doc
will create two different rows in resulting table.

"Muhammad Amjad" wrote:

Hi there,
+ Created a Word document (e.g. Student.doc).
+ Attached a Schema to it (e.g. Student.xsd).
+ Drew a Table with 2 Rows and 2 Columns.
+ Added the root Tag to whole document (e.g. student).
+ Inserted Headings in the 1st row (e.g. Name, Age).
+ Inserted Tags from the Schema in each column of 2nd row (e.g.
sname, sage).
+ Saved the document As XML with Word ML (e.g. StudentML.xml).
+ Again saved the document As XML with Data Only option (e.g.
StudentDataOnly.xml).
+ Used the WML2XSLT.exe to generate Student.XSL from StudentML.xml as
follows;
D:\Program Files\Microsoft Office 2003 Developer Resources\Microsoft
Office 2003 WordprocessingML Transform Inference Toolwml2xslt.exe
C:\StudentML.xml

+ Edited the StudentDataOnly.xml to put more values (just copied the
sname and sage elements once again).
+ Opened the StudentDataOnly.xml in Word 2003 and applied the transform
i.e. Student.XSL.
+ The output is not according to my expectations. It created 2 more
cells in the same row and puts the values there. However it should have
created another row and put name and age there.

Any ideas?

I am using Word 2003 and Word XML SDK. Thanks for you help.

Cordially,
M.Amjad


 




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 Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Word 2003: Table borders refusing to move to specified location ValerieSyn General Discussions 5 May 26th, 2005 06:07 PM
Table Design A. Williams Database Design 3 April 29th, 2005 07:02 PM
Envelope Address GR New Users 5 April 24th, 2005 09:48 PM
How do I create & merge specific data base & master documents? maggiev New Users 2 January 12th, 2005 11:30 PM
Manual line break spaces on TOC or Table of tables Eric Page Layout 9 October 29th, 2004 04:42 PM


All times are GMT +1. The time now is 09:04 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.