0

我正在生成正确的 cxml,但一开始缺少 doctype。

如何在之后添加以下文档类型<?xml version="1.0" encoding="utf-8"?>并使用 XSLT 映射复制剩余的 xml。

<!DOCTYPE cXML SYSTEM "http://xml.cxml.org/schemas/cXML/1.2.032/cXML.dtd">

所需的输出应该像

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE cXML SYSTEM "http://xml.cxml.org/schemas/cXML/1.2.032/cXML.dtd">
<xml>
<field>.... (followed by remaining xml structure)

谢谢,瓦伦

4

1 回答 1

1

尝试

<xsl:output method="xml"
  doctype-system="http://xml.cxml.org/schemas/cXML/1.2.032/cXML.dtd"
/>
于 2016-12-02T08:53:48.297 回答