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="document( 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.

--
simon@xxxxxxxxxxxxxx (Simon Brooke) http://www.jasmine.org.uk/~simon/

;; better than your average performing pineapple

.



Relevant Pages

  • Re: System.Net.webclient on windows mobile
    ... If you could transform it to XML in the XSForms format, in that case not only could you have an XSForms application use it to upload to the server, you'd also be able to generate a nice interface to edit and view the file locally on the device. ...
    (microsoft.public.pocketpc)
  • Re: Duplicate Record with .ADDNEW
    ... If the database server will allow you to create a table without something, ... table there is no possibility of duplicate records. ... field imported from the XML. ... Use the Command object instead. ...
    (microsoft.public.vb.database.ado)
  • RE: XML iFilter needed for SPS 2003 infopath forms?
    ... did in fact need to be installed on the Sharepoint server, ... Apparently the claim that SP indexes xml files is not quite specific enough. ... It must use a default text Filter not a true xml ifilter. ...
    (microsoft.public.sharepoint.portalserver)
  • Re: Display XML in WebBrowser Control
    ... XsltSettings xsltSettings = new XsltSettings ... XML files other than the ones that you provide, ... If I try to transform using .NET and the following code ... feed of XML and am trying to inject it into the control. ...
    (microsoft.public.dotnet.xml)
  • ADFS: Web server retrieving
    ... I have followed the ADFS step by step guide to set up a test ... account federation server: omsads33.acnoms.net ... TokenAppClaim to Group = TokenAppMapping called ... <Transform Algorithm="http://www.w3.org/2001/10/xml-exc- ...
    (microsoft.public.windows.server.active_directory)