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

RE: Formatting XSL for XML to CSV translation

Subject: RE: Formatting XSL for XML to CSV translation
From: "Stuart Jones" <stuart.jones@xxxxxxxxxxxxxxxxxxxx>
Date: Thu, 18 Sep 2003 18:42:12 +0100
stuart jones
Firstly, thanks for all your help and advice!

> There is no need to enumerate all the fields.  It seems that 
> your row data is contained in attributes (next time, don't
> make us guess about that). If you do not name the fields, you
> remove the need to change the stylesheet if your data source
> design changes, and you make the styesheet simpler
> as well..

Sorry. I made some assumptions. I can see how the method you described Tom is much simpler. However, field order is important so I will have to reference the attributes individually. And I need to do a spot of processing on certain fields anyway (to satisfy the external system that will ultimately take the CSV as input).

> Your approach is a typical procedural programming approach -
> go through the fields you want one by one, and put them into
> the right position. With xslt it is almost always better to
> take a different approach.

Guilty as charged! It's pretty obvious now that I need to think on XSLT in a different way.

Thanks again (to all)
Stuart

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.