Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 8th, 2010, 05:40 PM
Registered User
 
Join Date: Jan 2010
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default Excel to XML

I i have a table in excel with some movies and i want to extract it to XML using XSLT. How can i do that.

movie 1 | actor 1| 2009 | ...
movie 2 | actor 2 | 2010 | ...
 
Old January 8th, 2010, 05:51 PM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

Within Excel, do "Save As..." and then select "XML Spreadsheet". The resulting XML output is very verbose, but it's quite possible to write XSLT code to extract the data from the cells. The complexity depends a lot on how far you want to go, e.g. in handling joined cells and the like.
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference





Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel, VBA, and XML arholly Excel VBA 1 January 11th, 2009 10:36 PM
XML to Excel smithma0 XML 2 October 5th, 2007 09:46 AM
Opening XML with Excel boblavinsky XSLT 0 January 11th, 2007 09:18 PM
Problem in Conversion from XML to Excel nabeela_noor XML 1 January 14th, 2005 11:24 AM
Excel Report from XML Vasudevan XML 2 August 14th, 2003 06:05 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.