Some thoughts some of them might be really silly though :) Have you tried it the easy way:
Loading the xml file into a (typed) Dataset and using a datagrid / datalist / repeater for the formatting. ---- What happens when you split up the XML file to Schemadata Classes Attributes ---- Have you tried submitting your xsl file to a xsl mailing list to check for inefficiency's ? ---- Lastly you might want to try a different XML processor from what I've heard the XML parser of .NET isn't too fast and the MSXML 4.0 XML parser is a lot faster. .NET 2.0 beta 1 Express products also come with MSXML 6.0. I'm not sure this is usable in a production environment and what the status is of this XML parser but it could be that this will give you an exceptable performance. Hope these ideas aren't too weird :) -----Original Message----- From: Carlos Magalhaes [mailto:[EMAIL PROTECTED] Sent: maandag 19 juli 2004 22:39 To: [EMAIL PROTECTED] Subject: [AspNetAnyQuestionIsOk] XSL vs Straight String Builder storing HTML Hi All, Right so , I will explain what I need to do, I will explain what I have done and hopefully someone will explain what I need to do and how to do it :) I have a XML file that gets generated dynamically the size of the XML file is on average 1, 2 mb As you can see its a huge file, and the file has to be this big as its a dump of a whole application structure. Now to show this XML file in a "pretty" way, I went down the road of using XSL. This has become s tiring and tedious process. I get the table formatting and the values displaying and that already takes a nightmare of a long time and hangs my CPU by 100% for about 15 - 20 seconds. Then I needed Table collapsing to provide the collapse and expand per table, so I used a script to do this, and this just added to my nightmare XSL. The waiting time went to 30 -45 seconds and 100% cpu (and this is on a P4 2ghz with 1gig of ram). Now would it just be easier for me to use string builder and some how (hoping one of yo uwill show me how) to create the HTML file with the format I require. To view the work i have done please download the files -- http://www.learnasp.com/students/carlosm/xmlfiles.zip Thank you for you time and response I really appreciate your time and help. Carlos Magalhaes [Non-text portions of this message have been removed] Yahoo! Groups Links ------------------------ Yahoo! Groups Sponsor --------------------~--> Yahoo! Domains - Claim yours for only $14.70 http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/saFolB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
