This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: divide info in several output files
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] divide info in several output files
- From: cutlass <cutlass at secure0 dot com>
- Date: Thu, 01 Mar 2001 16:45:27 +0000
- References: <004e01c0a268$b14bb080$2a53a8c0@latinia>
- Reply-To: xsl-list at lists dot mulberrytech dot com
> need to output a html with a few (10 i.e.) of this itens
> and a link to other page containing the next 10 and
> so on til the last page including the last 8 items.
>
> The quantity of items can be different from one xml file
> to another so no quantity-dependant-solution
>
other half of question, sorry hit send button too early.
if u pass the style sheet parameters as discussed in previous posting, u
can always use just one xml file with all the articles, selectively
displaying whatever range ( start and end / page).
u can do some counting math to generate < a hrefs > with param passed in
the url ( remember parameter passing may be dependant on the type of
parser you are using)
ex.
<a href="whatever.com?start=1&end=9>back</a>
<a href="whatever.com?start=20&end=29>next</a>
or depending on how your xml file was arranged
<a href="whatever.com?page=1>back</a>
<a href="whatever.com?page3>next</a>
as xsl allows you to do numbering and counting and such, i leave it to u
to generate. once again there are stacks of other ways to do this, using
xlink comes to mind ( then generate javascript or typical links with
another stylesheet, etc ), this is just a humble start.
cheers, jim
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list