The idea's are awesome thank you very much.

Here are some answers:

Loading the XML data into a Dataset does not make a difference. And would
add more memory overhead to the situation, also the type of data that I have
I would have to create a relational dataset with datatables and relations
between the datatables at run time. I tried this and had it working but was
extremely complex and made the application run quite abit slower.
<You Wrote>
What happens when you split up the XML file to 

Schemadata
Classes
Attributes
</You Wrote>

Well that might work but still, my idea for creating the one big XML file is
that if someone wants to use the XML file in their own application its all
in one and "easy" to work with...

<You Wrote>----

Have you tried submitting your xsl file to a xsl mailing list to check for
inefficiency's ?

----
</You Wrote>

Which Mailing list?

Maybe I didn't explain my situation correctly.

What happens is if I just use the XSL to do HTML formatting I do not get
much perf hits and everything is quite alright, as soon as I start doing
referencing to the .js file to allow Collapsing and Expanding using a image
to the table it becomes a nightmare to work with.

For some reason the .JS file when included in the XSL (see the download -
the download has all the files needed to diagnose this problem) creates the
perf nightmare. When I remove the JS reference I have a perfectly working
example.

Remembering that I have on average of 200 classes and 1500 attributes I
would need this type of formatting (Collapsing and Expanding. I would also
like to add later a search section to the HTML using js. But for now As soon
as I add any JS is dies.

What I am trying to achieve is that for all the Classes and for all the
Attributes have a collapsible and Expandable option , on top of that the
main Class and the main Attribute section be collapsible and expandable. The
only way to do this that I could see was to use a JS (Java Script file) -
there must be a way to do this as if you open a XML file in IE with not XSL
this type of format is by default applied to the nodes....

The link I provided is a download to my current situation. It will show you
how opening schemadb.xml really sucks. 
It has been scanned by Trend Micro Corporate Office Scan with the latest
Virus Update.
Below is the desired result -- Thank you for your time and your effort I
helping me achieve the desired results. I appreciate it.

+ Classes 
+ Attributes 

- Classes
+ MyClass1
+ MyClass2
+ MyClass3
+ MyClass4
+ MyClass5
+ MyClass6
+ Attributes 

- Classes
- MyClass1
  Some Info1
  Some Info2
  Some Info3
  Some Info4
  Some Info5
+ MyClass2
+ MyClass3
+ MyClass4
+ MyClass5
+ MyClass6
+ Attributes 

+ Classes 
- Attributes 
+ MyAttribute1 
+ MyAttribute2
+ MyAttribute3 
+ MyAttribute4

+ Classes 
- Attributes 
- MyAttribute1 
  Some Info1
  Some Info2
  Some Info3
  Some Info4
  Some Info5
+ MyAttribute2
+ MyAttribute3 
+ MyAttribute4


-----Original Message-----
From: Mischa Kroon [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 20, 2004 10:24 AM
To: [EMAIL PROTECTED]
Subject: RE: [AspNetAnyQuestionIsOk] XSL vs Straight String Builder storing
HTML

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



 



------------------------ 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/
 

Reply via email to