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

Re: is paging transformation on server side possible ?

Subject: Re: is paging transformation on server side possible ?
From: "cutlass" <cutlass@xxxxxxxxxxx>
Date: Mon, 23 Jul 2001 12:57:28 +0100
what is paging
right then

here are some pointers

a) u can create multiple output docs ( use SAXON )
b) create an xslt script which creates batch file for processing with your
processor

---------------------------------------------------------------
xsl
---------------------------------------------------------------
<?xml version="1.0" ?>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:output method="text"/>

<xsl:template match="/">

<xsl:apply-templates select="//page"/>

</xsl:template>

<xsl:template match="page">
saxon test.xml test.xsl pagenumber=<xsl:value-of select="@pageno"/> >

test<xsl:value-of select="@pageno"/>.html
</xsl:template>



</xsl:stylesheet>

---------------------------------------------------------------
xml
---------------------------------------------------------------
<?xml version="1.0" ?>
<?xml-stylesheet href="test.xsl" type="text/xsl"?>
<pages>
<page pageno="1">
    this is page1 data
</page>
<page pageno="2">
    this is page2 data
</page>
<page pageno="3">
    this is page3 data
</page>
<page pageno="4">
    this is page4 data
</page>
</pages>

-----------------------------------------------------------------

of course your end xml format may have to be a 2 pass solution.

cheers, jim fuller


----- Original Message -----
From: "Elise D." <tyris_azriel@xxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Monday, July 23, 2001 12:25 PM
Subject: Re:  is paging transformation on server side possible ?


> yes thanks i already know this link, almost by heart
> :) but this example means i should call many times the
> xsl right ? (as much as the user click on the
> next/previous button).
> and as the transformation is done on the server, i
> can't ask him to be called many times for each
> results... my question in fact is : is there a way to
> create a only one time the html and the transformation
> ? what are the possibles solutions, depending on my
> limitations (server side transformation, ms xsl 3 only
> on the server, paging returned to the client, avoid
> many call to the server...)
>
> if there is no solution, what would be the best that
> fits ?
> --- cutlass <cutlass@xxxxxxxxxxx> a écrit : >
> > ----- Original Message -----
> > From: "Elise D." <tyris_azriel@xxxxxxxx>
> > To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
> > Sent: Monday, July 23, 2001 11:26 AM
> > Subject: Re:  is paging transformation on
> > server side possible ?
> >
> >
> > > well for server side transformation there is no
> > > problem. my question was to create a paging system
> > on
> > > server side, then i transform it on the server
> > (i'm
> > > used to do this) and the user will get a web page
> > > fully html + javascript only, with next, previous
> > page
> > > button (example : 5 results per pages)
> >
> > in other words u want to parse everything to flat
> > html on the server for
> > your clients
> >
> > >
> > > there is many ways to do this on client (as the
> > user
> > > will call back sxlt each time the next button is
> > > pressed for example... but how to do this on
> > server
> > > side, as my client can't have ms xsl3 ??
> >
> > ok which means your question is about paging, many
> > apologies, should read
> > the titles more often
> >
> > http://www.dpawson.co.uk/xsl/sect2/paging.html
> >
> > go here
> >
> > chow, jim
> >
> > >
> > >
> > >
> > >  --- cutlass <cutlass@xxxxxxxxxxx> a écrit : > u
> > may
> > > use server side XSLT transforms in many forms
> > > > ( i ignore server side
> > > > mxxsl solutions, of which there are many ways of
> > > > doing )
> > > >
> > > > a) use saxon servlet ( or use cfx_saxon in cold
> > > > fusion ) provided with
> > > > Michael Kay SAXON parser
> > > > b) use Axkit ( www.axkit.org ) which essentially
> > > > uses mod_perl and sablotron
> > > > c) create a cgi that executes sablotron ( ie
> > sabcmd
> > > > ) www.gingerall.com
> > > > which is a parser built in c
> > > > d) any of the java parsers can be run using JRUN
> > > > e) use perl as cgi whilst using many of the perl
> > > > modules and libraries that
> > > > are specifically dedicated to xml/xslt
> > > >
> > > > http://www.dpawson.co.uk/xsl/sect4/N10048.html
> > > > take a look here
> > > >
> > > > good luck, jim fuller
> > > >
> > > > ----- Original Message -----
> > > > From: "Elise D." <tyris_azriel@xxxxxxxx>
> > > > To: <XSL-List@xxxxxxxxxxxxxxxxxxxxxx>
> > > > Sent: Monday, July 23, 2001 10:32 AM
> > > > Subject:  is paging transformation on
> > server
> > > > side possible ?
> > > >
> > > >
> > > > > do someone knows a way to make paging on
> > server
> > > > side ?
> > > > > A
> > > > > transformation that only makes html.. because
> > if i
> > > > > make the
> > > > > transformation on the server and send the html
> > to
> > > > the
> > > > > client, i
> > > > > should only send html (and javascript if
> > needed),
> > > > as
> > > > > the user won't
> > > > > have ms xsl 3 installed.... i only saw example
> > of
> > > > > paging on client
> > > > > side. if you know something about this and
> > have
> > > > sample
> > > > > code...
> > > > >
> > > > > regards,
> > > > > elise, xml learning girl ;-)
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > >
> >
> ___________________________________________________________
> > > > > Do You Yahoo!? -- Vos albums photos en ligne,
> > > > > Yahoo! Photos : http://fr.photos.yahoo.com
> > > > >
> > > > >  XSL-List info and archive:
> > > > http://www.mulberrytech.com/xsl/xsl-list
> > > > >
> > > >
> > > >
> > > >  XSL-List info and archive:
> > > > http://www.mulberrytech.com/xsl/xsl-list
> > > >
> > >
> > >
> >
> ___________________________________________________________
> > > Do You Yahoo!? -- Vos albums photos en ligne,
> > > Yahoo! Photos : http://fr.photos.yahoo.com
> > >
> > >  XSL-List info and archive:
> > http://www.mulberrytech.com/xsl/xsl-list
> > >
> >
> >
> >  XSL-List info and archive:
> > http://www.mulberrytech.com/xsl/xsl-list
> >
>
> ___________________________________________________________
> Do You Yahoo!? -- Vos albums photos en ligne,
> Yahoo! Photos : http://fr.photos.yahoo.com
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

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
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.