[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: NET dataset.WriteXML to Spreadheet ML

Subject: Re: NET dataset.WriteXML to Spreadheet ML
From: Andrew Franz <afranz0@xxxxxxxxxxxxxxxx>
Date: Sun, 07 Jan 2007 23:17:24 +1100
dataset.writexml response
There's an easier way:

1. set content type to Excel
In JSP:
<%
response.setContentType("application/vnd.ms-excel");
response.addHeader("Content-Disposition", "attachment;filename=\"table.xls\"");
%>


2. Write out a normal xhtml table

Excel will do the conversion for you


Rick Roen wrote:


I want to transform the xml output from a NET dataset.WriteXML which
contains both schema and data into spreadsheet ML to be used by Excel.

Has someone already written a style sheet that can do this in a generic way?

I want the style sheet to use the schema information to create the column
headers and data types for the columns, and the data for the rows.

I don't think this is terribly difficult to do, but if someone has already
written one, it would save me some time.

Regards,

Rick

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.