Closed hisakonog closed 10 years ago
code is this:
<a href="#lesson{$lessonNumber}dialog{position()}" data-dismiss="modal" data-toggle="modal" data-target="#dialog{position()+1}" type="button" class="btn btn-primary">Next</a>
Successor function +1 doesn't work? I think it may be because +1 doesn't apply to the element in the last position...
can we do "if position()=last() then dismiss, else toggle position()+1" in xslt?
http://api.jquery.com/position/
http://api.jquery.com/last/
http://www.java2s.com/Code/XML/XSLT-stylesheet/ifstatementinforeachloop.htm
http://www.java2s.com/Code/XML/XSLT-stylesheet/AnexampleofifthenelselogicinXSLT10.htm
data-target need to be #lesson{$lessonNumber}dialog{position()+1}
but doesn't open the next item as it is supposed to