Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: Converting a xml STRING displaying a long date, to dd/mm/yyyy >Thread Next - Re: Converting a xml STRING displaying a long date, to dd/mm/yyyy Re: Converting a xml STRING displaying a long date, to dd/mm/yyyyTo: NULL Date: 12/30/2008 12:34:00 PM Savvoulidis Iordanis wrote: > Can the System.xml.xsl.xsltargumentlist.addparam be used to create CSV files > (output="text") ? I declare and call the xslt.Transform function exactly > like the example but I get the following message: > > "Token Text in state Start would result in an invalid XML document. Make > sure that the ConformanceLevel setting is set to ConformanceLevel.Fragment or > ConformanceLevel.Auto if you want to write an XML fragment. " > > I tested it on another XSLT file with output="xml" and the parameter thing > worked OK. Don't transform to an XmlWriter if you want text output, instead transform to a TextWriter http://msdn.microsoft.com/en-us/library/ms163438.aspx or to a Stream http://msdn.microsoft.com/en-us/library/ms163437.aspx -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
