- 它删除了“独立=“是”?”第一行的部分
Add standalone="yes"
to the xsl:output https://www.w3.org/TR/2017/REC-xslt-30-20170608/#element-output
- 它删除了元素中的值“[CDATA[”
声明命名空间http://www.test.com/ae/types/2009
然后使用cdata-section-elements="ae:value"
on the xsl:output
元素。
- 它将“process_model_port”元素组合在单行中,并在其末尾添加我在源文件中没有看到的版本。
您指的是schemaVersion="007.000.004"
?因为那是在源 XML 中。至于元素如何序列化,以及它是否是一行,这不应该是一个问题,我认为你没有办法影响它的序列化方式。
使用前缀声明命名空间的示例ae
以及对xsl:output
元素:
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:ae="http://www.test.com/ae/types/2009">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" cdata-section-elements="ae:value" standalone="yes"/>
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)