473,657 Members | 2,555 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XSLT and Excel

Hi Guys,

I do need to transform some excel spreadsheets into xml files through an
automated process.
Is it possible to do it using XSLT? Could anybody give me any direction?
Cheers,

Fabio.
Dec 6 '05 #1
2 3409
Fabio,

Are the Excel sheets in XML format already? If so, then you shouldn't
have to do anything.

If not, XSLT is not going to help you. XSLT can only transform from
XML->XML, XML->Delimited text. It can't transform from/to any arbitrary
format.

What you need to do is automate excel, open the sheet, and then save it
as XML (later versions of excel will allow you to save excel as xml).

Then, you can apply an XSLT to the XML that excel outputs in order to
get the XML in the format you want.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Fabio Goncalves" <fa*****@gmail. com> wrote in message
news:us******** *******@TK2MSFT NGP14.phx.gbl.. .
Hi Guys,

I do need to transform some excel spreadsheets into xml files through an
automated process.
Is it possible to do it using XSLT? Could anybody give me any direction?
Cheers,

Fabio.

Dec 6 '05 #2
Hi Nicholas,

I really appreciate your help.

Anyway, due to high volume of incoming files, I wont be able to manually
open excel

and transform then to xml. I am gonna write an application to do this
transformation.
Regards,

Fabio.


"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard .caspershouse.c om> wrote in
message news:%2******** **********@TK2M SFTNGP10.phx.gb l...
Fabio,

Are the Excel sheets in XML format already? If so, then you shouldn't
have to do anything.

If not, XSLT is not going to help you. XSLT can only transform from
XML->XML, XML->Delimited text. It can't transform from/to any arbitrary
format.

What you need to do is automate excel, open the sheet, and then save it as XML (later versions of excel will allow you to save excel as xml).

Then, you can apply an XSLT to the XML that excel outputs in order to
get the XML in the format you want.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Fabio Goncalves" <fa*****@gmail. com> wrote in message
news:us******** *******@TK2MSFT NGP14.phx.gbl.. .
Hi Guys,

I do need to transform some excel spreadsheets into xml files through an
automated process.
Is it possible to do it using XSLT? Could anybody give me any direction?
Cheers,

Fabio.


Dec 6 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
4588
by: Luther Miller | last post by:
I am using an XSLT file to convert data in a DataSet to XMLSS format for opening in Excel. Excel doesn't like the way Dates in the DataSet are being ouput. It appears that a timezone offset is being appended to the datetime; e.g., instead of "2003-08-26T00:00:00.0000000" I am getting "2003-08-26T00:00:00.0000000-07:00" in the output. If I could just get rid of the trailing "-07:00" in the output, I would be all set. I'm guessing this must...
2
5305
by: solex | last post by:
Hello, Is there a way to develop a style sheet that runs on the client that will open the file in excel? Thanks, Dan
7
2448
by: Doug Heeren | last post by:
I have the following section of VB.NET code that transforms a simple dataset into an Excel xml workbook. It works fine for < 50 rows or so, but I have about 8,000 rows I need to transform. Is there a better way than what I am doing. This is part of an ASP.NET applicaiton. 'Clear the output stream Response.ClearHeaders() Response.ClearContent() Response.ContentType = "application/vnd.ms-excel" Response.Charset = ""
2
5941
by: Wilson Wu | last post by:
hi, how can i use xslt to transform xml data into excel worksheet ? XML file : <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="test5.xsl"?> <dataroot xmlns:od="urn:schemas-microsoft-com:officedata"> <Employees>
0
1630
by: ronc85 | last post by:
My environment is ASP.NET 2.0, C# and AJAX. I'm having a problem with 'Button Click' logic which is trying to display a Gridview and then use XML/XSLT to build an Excel file. The following code does not display the Gridview but opens the created file in Excel.If I comment out the ExportDatasetToExcel routine the Gridview displays correctly. I'm assuming the problem is something to do with the Response methods.
2
8913
by: Ch Pravin | last post by:
Hi All: I am having the following xml which i need to convert to excel using xslt. Please help me out. Afghanistan.xml <?xml version="1.0" encoding="utf-16"?> <Languages BuildVersion="1,5,0815,0 " CountryName="Afghanistan" > <Language locale="English">
1
3309
by: =?Utf-8?B?R2xlbm4gR29tZXo=?= | last post by:
Does Office Excel 2000 support XSLT transformation of data from XML cause am having problem when the attachment is opened in the client side if the Excels version is in Office 2000 and also its works fine if the Office Excel Version 2002 and up when attachment file is open via browser the data is in a single line of string in the first row of the excel worksheet
0
1870
by: vikasthukral17 | last post by:
Hello Friends i want to convert xml shown under into excel file,xml is as <?xml version="1.0" standalone="yes"?> <?xml-stylesheet type="text/xsl" href="AggrPositions.xsl"?> <DataOut> <NoName> <AggregatedPosition> <PositionReference>549</PositionReference>
0
2905
by: vikasthukral17 | last post by:
Hello Friends i want to convert xml shown under into excel file,xml is as <?xml version="1.0" standalone="yes"?> <?xml-stylesheet type="text/xsl" href="AggrPositions.xsl"?> <DataOut> <NoName> <AggregatedPosition> <PositionReference>549</PositionReference>
2
9142
by: saritha2008 | last post by:
Hi, As part of transforming one form of xml to another form, i need to do the below mentioned transformation: My Input XML: <rss> <channel> <item> <assignee username="srinivas.rachakonda">Srinivas Rachakonda</assignee>
0
8403
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8316
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8737
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8509
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8610
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6174
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5636
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2735
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1730
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.