You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Bhavya Sharma <bh...@gmail.com> on 2006/07/31 08:06:15 UTC
Pagination
Hi
i am facing a problem in pagination, i have a XML file Like this , i want to
show one record at a time however ihave no idea how can i do that, specially
how to wtite its xsl, please reply ASAP
Thank you
Bhavya
<?xml version="1.0"?>
<emps>
<emp>
<ename> Sumit </ename>
</emp>
<emp>
<ename> Namit </ename>
</emp>
<emp>
<ename> Amit </ename>
</emp>
<emp>
<ename> Ajit </ename>
</emp>
<emp>
<ename> Namit </ename>
</emp>
<emp>
<ename> Ankit </ename>
</emp>
</emps>
--
Thank you,
Bhavya Sharma
Re: Pagination
Posted by Bhavya Sharma <bh...@gmail.com>.
Thnax however still , i have no idea how to use it
bhavya
On 7/31/06, Andreas Hartmann <an...@apache.org> wrote:
>
> Michael Wohlfart schrieb:
> > Hi Bhavya,
> > maybe an expression like emps/emp[position()=$n] is a good idea
> > to start with.
>
>
> > Please look it up ASAP ;-)
>
> :)
>
> -- Andreas
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
>
>
--
Thank you,
Bhavya Sharma
Re: Pagination
Posted by Andreas Hartmann <an...@apache.org>.
Michael Wohlfart schrieb:
> Hi Bhavya,
> maybe an expression like emps/emp[position()=$n] is a good idea
> to start with.
> Please look it up ASAP ;-)
:)
-- Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: Pagination
Posted by Michael Wohlfart <mi...@wohlfart.net>.
Hi Bhavya,
there is a nice example for pagination at
http://aspn.activestate.com/ASPN/Cookbook/XSLT/Recipe/117251
greetings
Michael
>> Bhavya Sharma wrote:
>> > Hi
>> >
>> > i am facing a problem in pagination, i have a XML file Like this , i
>> > want to
>> > show one record at a time however ihave no idea how can i do that,
>> > specially
>> > how to wtite its xsl, please reply ASAP
>> > Thank you
>> > Bhavya
>> >
>> > <?xml version="1.0"?>
>> >
>> > <emps>
>> > <emp>
>> > <ename> Sumit </ename>
>> > </emp>
>> > <emp>
>> > <ename> Namit </ename>
>> > </emp>
>> > <emp>
>> > <ename> Amit </ename>
>> > </emp>
>> > <emp>
>> > <ename> Ajit </ename>
>> > </emp>
>> > <emp>
>> > <ename> Namit </ename>
>> > </emp>
>> > <emp>
>> > <ename> Ankit </ename>
>> > </emp>
>> > </emps>
>> >
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: Pagination
Posted by Bhavya Sharma <bh...@gmail.com>.
Thnax however still , i have no idea how to use it
bhavya
On 7/31/06, Michael Wohlfart <mi...@wohlfart.net> wrote:
>
> Hi Bhavya,
> maybe an expression like emps/emp[position()=$n] is a good idea
> to start with. Please look it up ASAP ;-)
>
> http://www.w3.org/TR/xslt
>
> Thank you
> Michael
>
> Bhavya Sharma wrote:
> > Hi
> >
> > i am facing a problem in pagination, i have a XML file Like this , i
> > want to
> > show one record at a time however ihave no idea how can i do that,
> > specially
> > how to wtite its xsl, please reply ASAP
> > Thank you
> > Bhavya
> >
> > <?xml version="1.0"?>
> >
> > <emps>
> > <emp>
> > <ename> Sumit </ename>
> > </emp>
> > <emp>
> > <ename> Namit </ename>
> > </emp>
> > <emp>
> > <ename> Amit </ename>
> > </emp>
> > <emp>
> > <ename> Ajit </ename>
> > </emp>
> > <emp>
> > <ename> Namit </ename>
> > </emp>
> > <emp>
> > <ename> Ankit </ename>
> > </emp>
> > </emps>
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
>
>
--
Thank you,
Bhavya Sharma
Re: Pagination
Posted by Michael Wohlfart <mi...@wohlfart.net>.
Hi Bhavya,
maybe an expression like emps/emp[position()=$n] is a good idea
to start with. Please look it up ASAP ;-)
http://www.w3.org/TR/xslt
Thank you
Michael
Bhavya Sharma wrote:
> Hi
>
> i am facing a problem in pagination, i have a XML file Like this , i
> want to
> show one record at a time however ihave no idea how can i do that,
> specially
> how to wtite its xsl, please reply ASAP
> Thank you
> Bhavya
>
> <?xml version="1.0"?>
>
> <emps>
> <emp>
> <ename> Sumit </ename>
> </emp>
> <emp>
> <ename> Namit </ename>
> </emp>
> <emp>
> <ename> Amit </ename>
> </emp>
> <emp>
> <ename> Ajit </ename>
> </emp>
> <emp>
> <ename> Namit </ename>
> </emp>
> <emp>
> <ename> Ankit </ename>
> </emp>
> </emps>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org