[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: client side XML functionalities


sarissa ie problem
Hello Michael,

Topic: local transformation.
> So the question is: Can I do a client side XSLT transformation and be
able to pass these parameters to the XSLT template?  

Yes, you can do this from Javascript using an API such as Sarissa.

Didier replies:
You are right, you can do that with javascript. Doing it with Sarissa may
poses some problems like:
a) Sarissa is copying every element into javascript objects. New functions
like "selectSingleNode" can then be added to the newly created object. This
may be or not a problem dependent on the DOM size, potential memory leaks
(due to DCOM refcount), etc... But for the moment let's pretend it doesn't
cause any problem at that level.
b) if you use Sarissa to transform the document, this last thing is not
included in Sarissa, you'll have to develop your own rendering of the
result. Here are some of the drawbacks you'll encounter on different
platforms. 1) Microsoft internet Explorer: if you use the
window.document.write function to write the result of the transform, then
your platform will freeze unless you write the content in an embedded
iframe. Why? Because doing a write will overwrite the script and hang the
browser. Natural you say? 2) Mozilla: you do the same thing as previously
mentioned for IE and this time it will work because Mozilla independently
handle the function. Hence, the function can finish it's job without
problems.
On and on....
So yes you can do that with Sarissa but only a fraction of the process is
handled by it. You're still on your own for the other part: rendering the
result. And I just scratched the surface of all the problems you'll
encounter on the different platforms.
	 

Topic: parameter passing through a URL:
> Can I do that through a URL? Is it possible to link from one document to
select a certain XML document, a certain XSLT template, some parameters all
from a URL?

Not as far as I know: except of course with a "javascript:" URL that invokes
the above Javascript code.

Didier replies:
Again, you'll have to implement it. It's not an "off the shelf" solution


Michael said:
Your point?

Didier replies:
Firstly, thanks Michael for your answers that honestly reflected the actual
state of the art.

You were the only one responding, so I guess that your answers reflected the
current knowledge/toolset of the community.

We are still far from a tool able to work on at least the IE and Mozilla
platforms. Why? Because both represent at least 96% of the total market
place and offer a cross platform solution (able to run Mozilla on several
platforms, IE on Windows)

A) Transform XML documents on the client side with parameters and render the
result
B) Possibility to assemble several XML document or to process a pipeline of
transforms and render the result.
C) Possibility to specify in a URL either the pipeline/assembly process or
all the parameters to be passed to the engine. Why? Because different
referrers can define different parameters or XSLT templates to render the
same encoded data.

Cheers
Didier PH Martin




PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.