Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何缩进由于 STX 转换而生成的输出 XML。我通过查看transform元素在官方文档中搜索了它,但发现它没有任何缩进属性,就像XSLT一样。有没有办法做到这一点?
例如,您可以使用 xmllint
xmllint --format file.xml > file-formated.xml