开发者

Saxon 9 parser and indent="no" - How to remove 'pretty-print'?

Setting indent="no" has no effect with Saxon 9. I guess it is optional in the spec; it isn't really a bug or anything with Saxon.开发者_如何学运维 Is there any way to remove the "pretty print"? We save off the XML and it is quite a bit bigger with all the indents.


Use:

<xsl:strip-space elements="*"/>

The reason there is still indentation without including the above xslt instruction, is that whitespace-only nodes get copied.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜