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

Re: Re: Partial Extraction

Subject: Re: Re: Partial Extraction
From: "Babu Sathish Ramaraj" <bramaraj@xxxxxxxxxx>
Date: Wed, 5 Feb 2003 16:54:54 +0530
partial extraction
Hi,


I am not sure that there is a method in XSLT where u can transform only one
section of <group>.But i think this may work fine..


If u assign a attribute say id ...while building the xml.. u may get the xml
like this..

<total>
 <group id="1">
 <list>
 <list>
 <list>
 </group>
 <group id="2">
 <list>
 <list>
 </group>
 </total>

In the xsl at the first time display the first group ie where group id="1"

Let us assume , we have previous and next buttons...if u click next get the
currrent group id ..increment and pass to the same page...if it is going to
be previous..decrement the current group id by one and call the same page...

Note: when u get the records from the database and u are building it in
xml...make sure that u have only one record in xml...ie the group id u
wanted...

Consider there is a file displaygroup.jsp..where u get  the first trecord
initially .. built in the xml file and u are passing this to the xsl...
so u will now display the first group...
and then have the next and previous buttons and do as said above and pass
the group id to the same page..suppose if u pass the group id as 6 ...u have
to get the 6th record from the database and put it in xml..others don't
need...b'coz it is an overhead ...


Cheers
Babu Sathish.


----- Original Message -----
From: "Frank Psaila" <Frank@xxxxxxxxxx>
To: <XSL-List@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Wednesday, February 05, 2003 4:14 PM
Subject:  Re: Partial Extraction


> Hi All,
>
> I have the following XML :
> <total>
> <group>
> <list>
> <list>
> <list>
> </group>
> <group>
> <list>
> <list>
> <list>
> </group>
> </total>
>
> Is there a method in XSLT where I can transform only one section of
<group>
> and upon pressing a "previous" or "next" button make a transformation of
the
> next or previous <group> section. I only need to display one group at a
time
> the reason being that each group can be large.
>
> regards
> Frank
>
>  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.