XSLT: Remove excess whitespace characters preserving nodes

前端 未结 3 558
后悔当初
后悔当初 2021-01-16 08:06

So my problem is this. I have a transform document which is used in many places, and generically handles a lot of small formatting transforms. In one specific case, I need t

3条回答
  •  轮回少年
    2021-01-16 08:21

    When you use normalize-space then only the text-value of your fragment is used and thus sub-nodes are stripped. You'd have to put the normalize-space into templates for the sub-nodes as well (those that are applied by your

提交回复
热议问题