XSLT : Looping from 1 to 60

后端 未结 5 1215
刺人心
刺人心 2020-12-05 09:34

What is the best way to loop in XSLT from 1 to 60? I research in net, there are some templates to do this, is there any other way for example like a built-in function?

5条回答
  •  孤街浪徒
    2020-12-05 10:08

    XSLT works based on templates and you'll need a template do run that loop.

    You'll need to build a template receiving start and end values and, inside it, make a recursive call computing with start + 1. When $start equals $end, you do return your template, without another call.

    In practice: http://www.ibm.com/developerworks/xml/library/x-tiploop/index.html

提交回复
热议问题