xsl-list
[Top] [All Lists]

RE: [xsl] why does the linit not work here ?

2012-01-13 13:18:27

Thanks but it won't work.

 

When I change it to this : <xsl:apply-templates 
select="dagboek/entry[[position() &gt; $offset and position() &lt; $end]
 " />


 

I see this error message : 

 

XSLTProcessor::importStylesheet(): 

 

Invalid expressionXSLTProcessor::importStylesheet(): XSLT-apply-templates: 
could not compile select expression 'dagboek/entry[[position() > $offset and 
position() < $end] 

XSLTProcessor::transformToXml(): No stylesheet associated to this object

 

Roelof

 

 

 

---------------------------------------- > Date: Fri, 13 Jan 2012 13:50:27 
-0500 > To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com; 
xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com > From: 
gkholman(_at_)CraneSoftwrights(_dot_)com > Subject: Re: [xsl] why does the 
linit not work here ? > > At 2012-01-13 18:45 +0000, Roelof Wobben wrote: > 
What i was expecting was if I goto page 2 of april 2005 there will > >be 3 
articles displayed because articles_per_page has the value of 3 > >and offset 
has value of 1 and end has the value of 5. > > > >So this rule : >the articles 
between 1 and 5. So articles 2,3,4. > > But it won't because the second 
predicate is applied to the *results* > of the first predicate. To have it 
applied simultaneously with the > first predicate, you need to put it *in* the 
first predicate: > > [position() > $offset and position() < $end] > > >Can 
anyone help me figure out why this happens ? > > Because the "[position() < 
$end]" predicate is being applied to > those returned by the "[position() > $of!
 fset]" predicate. > > I hope this helps. > > . . . . . . . . Ken > > > -- > 
Contact us for world-wide XML consulting and instructor-led training > Free 
5-hour video lecture: XSLT/XPath 1.0 & 2.0 http://ude.my/uoui9h > Crane 
Softwrights Ltd. http://www.CraneSoftwrights.com/s/ > G. Ken Holman 
mailto:gkholman(_at_)CraneSoftwrights(_dot_)com > Google+ profile: 
https://plus.google.com/116832879756988317389/about > Legal business 
disclaimers: http://www.CraneSoftwrights.com/legal > > > 
--~------------------------------------------------------------------ > 
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: > 
--~-- >                                         
--~------------------------------------------------------------------
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>
--~--


<Prev in Thread] Current Thread [Next in Thread>