开发者

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

开发者 https://www.devze.com 2022-12-20 07:00 出处:网络
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 s

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

精彩评论

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