Altova Mailing List Archives


Re: [xsl] divide info in several output files

From: cutlass <cutlass@----------->
To:
Date: 3/1/2001 6:39:00 AM
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

Disclaimer

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.