473,385 Members | 1,973 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,385 software developers and data experts.

XSLT and client cache

Hi
I want to do something like this:
Store the XSLT document in the client cache if it is not already present.
If present then use that XSLT document to display the xml.
I have no idea how to do this.
Can anyone help.
Jul 18 '05 #1
3 1285
john wrote:
I want to do something like this:
Store the XSLT document in the client cache if it is not already present.
If present then use that XSLT document to display the xml.
I have no idea how to do this.


The question is somewhat vague, but I'll refrain from directing
you to read a certain essay by ESR for now. ;-)

Can we assume by "client" you mean a web browser? If so,
why would you treat the XSLT document any differently from
any other file your server sends it? Any browser with the
capability should already be caching XSLT just as it caches
anything else that doesn't ask not to be cached with the
various HTTP headers that can do so...

-Peter
Jul 18 '05 #2
Peter Hansen <pe***@engcorp.com> wrote in message news:<pb********************@powergate.ca>...
john wrote:
I want to do something like this:
Store the XSLT document in the client cache if it is not already present.
If present then use that XSLT document to display the xml.
I have no idea how to do this.


The question is somewhat vague, but I'll refrain from directing
you to read a certain essay by ESR for now. ;-)

Can we assume by "client" you mean a web browser? If so,
why would you treat the XSLT document any differently from
any other file your server sends it? Any browser with the
capability should already be caching XSLT just as it caches
anything else that doesn't ask not to be cached with the
various HTTP headers that can do so...

-Peter

Ya i mean web browser by client.
But how can I determine whether the XSLT document is already present
in client cache??
Jul 18 '05 #3
john wrote:
But how can I determine whether the XSLT document is already present
in client cache??


You cannot. Have you read about how caches function? The
best you can hope to do is to ask the client to reload
the document, either by marking it as non-cachable or by
indicating that it has changed since the last time the
browser tried to load it, using the last-changed header.

And even then, the browser is free not to reload it again
if it doesn't want. Heck, a user can configure the browser
not even to *check* whether the file should be reloaded,
in some cases.

What are you trying to do that you think you need to
know whether a client cache contains a document?

-Peter
Jul 18 '05 #4

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

Similar topics

5
by: john | last post by:
Hi I am devlopeing a data centric intranetsite with data in mysql database I would like your opinion on this architecture Data will be fetched from database by python & converted into xml The...
5
by: PHILIPPE | last post by:
Hi, I'm facing a annoying problem. In the old ASP times, I was able to construct dynamically an XSL file and then apply it to my XML file to create the HTML output. Today, with the .NET...
4
by: Ringo Langly | last post by:
Hi all, I'm a seasoned web programmer, but I've never touched XSLT. It's always been one of those acronyms I've never needed to educate myself on. Now... we're working with a web content...
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...
0
by: Vincent Lefevre | last post by:
Under Linux, I currently use xsltproc (libxslt), but it is awfully slow and takes a lot of memory (e.g. more than 100 MB) when using many XML files with a large DTD (e.g. DocBook): With my DTD...
6
by: ree32 | last post by:
I am a bit confused with capabilities of XML. I have an XML document with information on images(photos). Is there way to use XSL/XSLT to create a page that will display the images as gallery. ...
4
by: Stephen | last post by:
I have the following that outputs an xml file to a div using ajax: <script type="text/javascript"> function ajaxXML(url,control_id){ if (document.getElementById) { var x =...
2
by: Larry Marburger | last post by:
I've built and XSLT that is used to generate a simple TreeView-type, web-based control (ASP.NET / C#). When the tree is fully transformed (client-side, JavaScript transformation), there are about...
0
by: mateipuiu | last post by:
When a try to run a client build on 2005, which uses the Microsoft.ApplicationBlocks.Cache.dll reference, when using a Microsoft.ApplicationBlocks.Cache.dll created on Debug mode, the client works...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.