Subject:To generate a csv file from xml file using xslt Author:(Deleted User) Date:30 Apr 2007 10:08 AM
Hi Sandeep,
CSV is not an XML-based format, so you should not use it as the output method. And CSV is not a valid output method for XSLT. If you want to manually generate it, you should use the TEXT output method.
Or a better way would be to generate an XML having a 3-level hierarchy like
and then use the XML Converters that are bundled with Stylus Studio to have it converted into a CSV file, just by saving the result to a special URI converter:CSV?file://c:\sample.csv