473,757 Members | 10,708 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Difference between server-side and client-side XSL processing

One of the things I'm messing with at present is offloading some of my XSL
processing to those browsers which claim to be able to handle it. That is
to say, if the client tells me it accepts either 'text/xml'
or 'application/xml' I'll send it the XML with an appropriate
xml-stylesheet PI; otherwise I'll run the transform server side and ship
HTML.

However, I'm getting differences in the resulting HTML depending on whether
the XML is transformed client side or server side. Most of those
differences seem to be concerned with things that do the equivalent of

<xsl:apply-templates select="documen t( someurl)"/>

where the URLs are all world-addressable URLs, some of them on the same
server the XML was despatched from, some not. An example is this page

http://www.scaffie.co.uk/scenehere/showscene?scene=1

[this is a system in development, bits of it break and it has rough edges -
I know this]

When fetched with Firefox, which advertises its ability to transform XML,
the book details which should be fetched from Amazon into the floating DIV
on the right of the page do not get fetched; when fetched by a browser
(such as IE7 or Konqi) which does not advertise the ability to transform
XML, I do the transform server side using Xalan2, and the book details do
get fetched.

What I want to know is

(i) Is there something in the specifications which says that clients should
not fetch XML from third-party sites?

(ii) Is there some obvious - and foolish - bug in my code?

(iii) Is there a bug in Firefox?

I'd really like to offload the transform where I can, because it would save
a lot of load on my servers.

--
si***@jasmine.o rg.uk (Simon Brooke) http://www.jasmine.org.uk/~simon/

;; better than your average performing pineapple

Apr 2 '07 #1
1 2607
Simon Brooke wrote:
(i) Is there something in the specifications which says that clients should
not fetch XML from third-party sites?
Browsers apply the same origin policy so with XSLT a document loaded
from http://example.com/ can load further resources from
http://example.com/ but not from other origins.
With IE/Win you can change that configuration for the different security
zones but I don't think Mozilla allows you to configure that.
There have however been some attempts to specify ways to enable a server
to allow access to resources, the latest is
<http://www.w3.org/TR/access-control/but I don't think there is any
implementation of that.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Apr 3 '07 #2

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

Similar topics

5
3538
by: Neil Rutherford | last post by:
During testing of an application, i noticed a difference between SQL 2000 and SQL 7, both with identical config. In a nutshell: A table has a trigger for UPDATE and DELETE. When a column in the table is UPDATED the following happens: In autocommit mode, when entering a trigger the trancount equals 1 for both SQL 7 and 2000.
1
1438
by: Vannela | last post by:
What exactly is the difference between Webserver and ApplicationServer?
3
9974
by: Zlatko Matić | last post by:
Excuse me, what is the difference between user and system_user and which function should be used in audit trail table ? Thanks.
7
1426
by: Tina | last post by:
I'm using 1.1/vs.net 2003 ... C#example.............. string myPath = Server.MapPath(".\\Data\\" + (string) Session); Produces this value in myPath ?myPath
1
1031
by: gujarsachin2001 | last post by:
Hey , can anybody tell me what is the difference between server.transfer and server.Execute.
4
14153
by: SandyIsCool | last post by:
Hi, Can any one let me know what is difference between Server.mappath and Page.resolveURL and what are the situations we use them. Thanks, Sandy
23
14040
by: Nishant Saini | last post by:
Dear All, We have a database which contains many tables which have millions of records. When We attach the database with MS SQL Server 2005 Standard Edition Server and run some queries (having joins, filters etc.) then they take very long time to execute while when We execute same queries on Enterprise Edition then they run 10 times faster than on standard edition. Our database does not use any features which are present in Enterprise
9
5759
by: HC | last post by:
Hello, all, I started out thinking my problems were elsewhere but as I have worked through this I have isolated my problem, currently, as a difference between MSDE and SQL Express 2005 (I'll just call it Express for simplicity). I have, to try to simplify things, put the exact same DB on two systems, one running MSDE and one running Express. Both have 2 Ghz processors (one Intel, one AMD), both have a decent amount of RAM (Intel system...
3
4161
by: bbawa1 | last post by:
Hi, I have a table which has a field ItemsReceived of type datetime. I have a grid view which has two columns. In first column i have to show the data from field ItemsReceived and in second column I have to show difference between Currenttime and date from ItemReceived. How can I do that.
2
1511
by: Dale Harris | last post by:
Hi, I was wondering, is there a difference between Server.Transfer and Response.Redirect? They seem to do the same thing. Or am I mistaken? TIA ** Posted from http://www.teranews.com **
0
9489
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9298
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9885
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9737
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8737
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5172
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5329
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3829
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3399
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.