Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: Argh Help Server side transformation [Thread Next] Re: Argh Help Server side transformationTo: NULL Date: 12/7/2004 2:01:00 AM Thanks, I gave up for a while in frustration. If I could send a beer over the wire I would send you a keg. Cheers Keith "Han" <hp4444@k...> wrote in message news:%23BzEUIC3EHA.1192@t...... > There might be about 10 scenarios. One of them is, > > string xsl="your xsl string" > StringReader sr=new StringReader(xsl); > XmlTextReader tr=new XmlTextReader(sr); > XslTransform xs=new XslTransform(); > xs.Load(tr); > > doc.Load(sqlCmd.ExecureXmlReader()); > StringWriter sw=new StringWriter(); > xs.Transform(doc,null,sw,null); > > The last /sw/ has the transformed XML result as string. > > -- > Pohwan Han. Seoul. Have a nice day. > "Keith Chadwick" <webmaster-nospam@a...> wrote in message > news:O9KcYMA3EHA.1392@t...... > This should not be so blasted dificult to figure out what flipp'n dot net > xml objects to use. > > I have a xmldocument loaded via myxmldoc.load(sqlCmd.ExecureXmlReader()) > > The sqlCmd calls a sp that returns some data with for xml. > > What I want to do is simply load a simple xsl transformation that is built > on the fly in code as a string. Apply the transformation to myxmldoc and > load the results back into another xmldocument. > > But what objects plug into what? For instance how do you get a string > representing a xslt into a xsltransform object. > > What object to you put the resulting transform into that then can be put > into a xmldocument etc. I could do this in 3 lines in MSXML now I have to > jump through blasted hoops to do something very simple. > > Please help before I throw the monitor out the window!!! > > Cheers > Annoyed > | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
