What's so bad about xsl:for-each?

后端 未结 5 1976
春和景丽
春和景丽 2021-01-12 23:35

I hear time and time again about how you should avoid the use of XSLT for-each. That it\'s your inner imperative programming demon that should be banished.

What\'s

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-12 23:45

    Templates tend to split up the code more nicely. Also, for-each loops suffer from the fact that people often come to them with the idea that they operate identically to the way for loops work in the major programming languages.

提交回复
热议问题