This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: divide info in several output files


>  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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]