xsl-list
[Top] [All Lists]

RE: [xsl] can a value of a parameter depends on a other value

2011-11-30 11:09:39


What am trying to make is a blog which dived into months.

Some months have so many articles that I have to divide them into pages.

The problem is that I want to decide how many articles are placed on a 
particular place.

 

So i want to make a parameter articlesperpage which value depends on the value 
of the parameters month and page. 

The parameters month and page are made by the cms I use. That's Symphony cms.

 

So in pseudoocode I want this.

 

If month="2005-02" and page=1 then articlesperpage must be 2 

if month="2005-02" and page=2 then articlesperpage must be 3 

 

Later on I also need the parameters totalpages and offset.

Totalpages is the total of pages of a month. I need it because later on I will 
write a prev/next script.

Offset is the number of articles which must not be displayed because the 
articles are displayed on a earlier page.

 

But first I want to make it work with one parameter and I try to find out how 
to make this work. 

 

Roelof

 

 


----------------------------------------
Date: Wed, 30 Nov 2011 14:10:10 +0000
From: mike(_at_)saxonica(_dot_)com
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] can a value of a parameter depends on a other value

On 30/11/2011 11:02, Roelof Wobben wrote:
Oke,





The whole xslt looks like this :




I hope I now give enought clues to solve this.



We can now see exactly what's wrong, but we can't help you to fix it,
because we have no idea what you are trying to achieve.

Michael Kay
Saxonica

--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
                                        
--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--