Re: [xsl] Pageing

Subject: Re: [xsl] Pageing
From: Mike Trotman <mike.trotman@xxxxxxxxxxxxx>
Date: Wed, 07 Jul 2004 20:30:17 +0100
If you need to avoid server interaction then I presume you mean there is only client-side processing.

If you are using Internet Explorer as your browser then the DOM model should allow you to run XSLT transformations from Javascript using the transformNode(?ToObject) method.
You can also use the load method (or maybe xmlHTTP) to load xml documents.

So - you load your XML as an xml document.
then load your XSL as an xml document
then transform your XML into a NEW HTML document using the XSL
and display the output in your browser document.

I haven't done this whole process but I think I've successfully done each part of it.
For total self-contained client-side processing I think this is your only solution.

I don't have any example code - but I do have part of a copy of an old Microsoft XSLT debugger (search Google for xsl-debugger)
written entirely in javascript as a single html page (400+ lines - 14kb) which does most of the above (+ many other features as well).
All the links I have to the Microsoft source for this are now not present on the Microsoft site.

I think it's probably safe to send you a copy - so e-mail me if you think it would help.

Evan Wellens wrote:

Hey All

Does anyone know any tricks to pull off paging without involving server interaction. Our XML & XSL must be portable and transform without server interaction. I know I can filter by record count with something like

<xsl:if test="position() &lt; 17">

But this type of static processing will not allow for things such as next and previous page links ( at least I don't believe so) . If there were some means to catch the transformation prior to processing with javascript or something that would be great but to date I can find no references to any such algorithm.

I've been stuck on this point for days and unfortunately I have to demo a functional version by weeks and so any help / Advice would be sincerely appreciated !!!


--+------------------------------------------------------------------ XSL-List info and archive: To unsubscribe, go to: or e-mail: <mailto:xsl-list-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx> --+--

Datalucid Limited
8 Eileen Road
South Norwood
London SE25 5EJ
United Kingdom

tel :0208-239-6810
mob: 0794-725-9760
email: mike.trotman@xxxxxxxxxxxxx

UK Co. Reg:   4383635
VAT Reg.:   798 7531 60


Current Thread
  • Pageing
    • Evan Wellens - Wed, 07 Jul 2004 14:00:40 -0400
      • Mike Trotman - Wed, 07 Jul 2004 20:30:17 +0100 <=