xslt sort output xml

后端 未结 3 1139
一整个雨季
一整个雨季 2021-01-06 18:59

I\'m trying to find a solution to the following problem.

I\'m developing XSLT transformation (which is now about 40KB big) that is transforming quite complex XMLs i

3条回答
  •  爱一瞬间的悲伤
    2021-01-06 19:57

    40Kb is a lot of code for one stylesheet. When things get to this kind of scale, it's usually best to split a transformation into a pipeline of smaller transformations. If you have such a pipeline architecture, then adding a sort step at the end is trivial. There are plenty of technologies for managing a pipeline of transformations (XProc, Orbeon, xmlsh, ant, Coccoon) depending on your requirements. The benefit of pipelining is that it keeps your code modular and reusable.

提交回复
热议问题