473,406 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Storing Xslt Files in Application.

I was wondering if there would be any significant performance increases by
loading Xslt Files into the Application Variables if there were a single or
maybe multiple XSLT file(s) that would be used throughout a website. I do
not know if relieving the I/O burden would overcome the memory/hashtable
lookup from storing one or multiple XSLT Files in the Application Object.
Nov 18 '05 #1
5 1204
if you have lot of files getting processed by one single xslt, you can store
XSL Processor in the application.
but having many is not recommended.

Av.
<jo*****@driver.net> wrote in message
news:eM**************@TK2MSFTNGP11.phx.gbl...
I was wondering if there would be any significant performance increases by
loading Xslt Files into the Application Variables if there were a single or
maybe multiple XSLT file(s) that would be used throughout a website. I do
not know if relieving the I/O burden would overcome the memory/hashtable
lookup from storing one or multiple XSLT Files in the Application Object.

Nov 18 '05 #2

<jo*****@driver.net> wrote in message news:eM**************@TK2MSFTNGP11.phx.gbl...
I was wondering if there would be any significant performance increases by
loading Xslt Files into the Application Variables if there were a single or
maybe multiple XSLT file(s) that would be used throughout a website. I do
not know if relieving the I/O burden would overcome the memory/hashtable
lookup from storing one or multiple XSLT Files in the Application Object.


Maybe the "Cache" object would be a better choice: you
could set a CacheDependency, so the cached item is removed when
the real file is changed (nice feature when developing).

But: there is one problem, specifically with xslt's! when you use
<xsl:include> elements, the processor knows where to look in
the case of a file, but needs some help when the xslt comes from a string.
(you need to supply an XmlResolver)

Hans Kesting
Nov 18 '05 #3
Well, I was hoping to have found somebody that had actually done this. I
guess I will have to find some spare time to do some benchmarking of my own
and compare the results.

"Hans Kesting" <ne***********@spamgourmet.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...

<jo*****@driver.net> wrote in message
news:eM**************@TK2MSFTNGP11.phx.gbl...
I was wondering if there would be any significant performance increases
by
loading Xslt Files into the Application Variables if there were a single
or
maybe multiple XSLT file(s) that would be used throughout a website. I do
not know if relieving the I/O burden would overcome the memory/hashtable
lookup from storing one or multiple XSLT Files in the Application Object.


Maybe the "Cache" object would be a better choice: you
could set a CacheDependency, so the cached item is removed when
the real file is changed (nice feature when developing).

But: there is one problem, specifically with xslt's! when you use
<xsl:include> elements, the processor knows where to look in
the case of a file, but needs some help when the xslt comes from a string.
(you need to supply an XmlResolver)

Hans Kesting

Nov 18 '05 #4
Hi John,

I've also never try storing XSLT in ApplicationState so as to share for the
applicatoins but I think Hans's suggestion on use the ASP.NET's serverside
Cache is reasonable.

#Adding Items to the Cache
http://msdn.microsoft.com/library/en...ngitemstocache
.asp?frame=true

Thanks.
Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx


Nov 18 '05 #5
Hi John,

Have you got any further ideas on this issue? If there're anything else we
can help, please feel free to post here. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: gipsy boy | last post by:
Hello, I have sort of a big problem. I would really appreciate any help you could give me. I made a web service in C++ that throws XML to the client (browser). But, the XSLT transormation...
7
by: AndrewMBaldwin | last post by:
So I am quite upset that after working for a few hours on getting an XML file format and XSL file that formats the XML data appropriatly, only to find that if you store HTML code in your XML file...
2
by: Fabio Goncalves | last post by:
Hi Guys, I do need to transform some excel spreadsheets into xml files through an automated process. Is it possible to do it using XSLT? Could anybody give me any direction? Cheers, ...
12
by: Jeff Calico | last post by:
I have 2 XML data files that I want to extract data from simultaneously and transform with XSLT to generate a report. The first file is huge and when XSLT builds the DOM tree in memory, it runs...
6
by: (PeteCresswell) | last post by:
User wants to go this route instead of storing pointers in the DB and the documents outside. Only time I tried it was with only MS Word docs - and that was a loooong time ago - and it seemed to...
9
by: KarlM | last post by:
After reading some articles regarding confuguration data I'm a bit confused. Where is the right place for storing configuration data? - XML-files? - registry? - INI-files? (from a users point...
4
by: th1421 | last post by:
Hi, I'm new to FireFox. I am currently trying to convert my website to be compatible with it. Doing so I’m trying to process some XML/XSLT pages (preferably without using JavaScript). When I...
2
by: killy971 | last post by:
I have been testing different libraries to process XSL transformations on large XML files. The fact is that I read a document from Intel, stating their library (XSLT accelerator) was more twice...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.